mirror of
https://github.com/monero-project/monero.git
synced 2024-12-26 11:09:26 -05:00
Fix spelling errors
This commit is contained in:
parent
605ad09a3e
commit
35d68b2c6d
@ -99,7 +99,7 @@ int levin_client_impl::invoke(int command, const std::string& in_buff, std::stri
|
|||||||
|
|
||||||
if(head.m_signature!=LEVIN_SIGNATURE)
|
if(head.m_signature!=LEVIN_SIGNATURE)
|
||||||
{
|
{
|
||||||
LOG_PRINT_L1("Signature missmatch in response");
|
LOG_PRINT_L1("Signature mismatch in response");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -160,7 +160,7 @@ inline
|
|||||||
|
|
||||||
if(head.m_signature!=LEVIN_SIGNATURE)
|
if(head.m_signature!=LEVIN_SIGNATURE)
|
||||||
{
|
{
|
||||||
LOG_PRINT_L1("Signature missmatch in response");
|
LOG_PRINT_L1("Signature mismatch in response");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -408,7 +408,7 @@ namespace levin
|
|||||||
|
|
||||||
if(head.m_signature!=LEVIN_SIGNATURE)
|
if(head.m_signature!=LEVIN_SIGNATURE)
|
||||||
{
|
{
|
||||||
LOG_ERROR("Signature missmatch in response");
|
LOG_ERROR("Signature mismatch in response");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ namespace levin
|
|||||||
}
|
}
|
||||||
if(head.m_cb != buff.size()-sizeof(levin::bucket_head))
|
if(head.m_cb != buff.size()-sizeof(levin::bucket_head))
|
||||||
{
|
{
|
||||||
LOG_PRINT_L3("sizes missmatch, at load_struct_from_levin_message");
|
LOG_PRINT_L3("sizes mismatch, at load_struct_from_levin_message");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ namespace levin
|
|||||||
}
|
}
|
||||||
if(head.m_cb != buff.size()-sizeof(levin::bucket_head))
|
if(head.m_cb != buff.size()-sizeof(levin::bucket_head))
|
||||||
{
|
{
|
||||||
LOG_ERROR("sizes missmatch, at load_struct_from_levin_message");
|
LOG_ERROR("sizes mismatch, at load_struct_from_levin_message");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ namespace levin
|
|||||||
{
|
{
|
||||||
if(m_cach_in_buffer.size() >= sizeof(uint64_t) && *((uint64_t*)m_cach_in_buffer.data()) != LEVIN_SIGNATURE)
|
if(m_cach_in_buffer.size() >= sizeof(uint64_t) && *((uint64_t*)m_cach_in_buffer.data()) != LEVIN_SIGNATURE)
|
||||||
{
|
{
|
||||||
LOG_ERROR_CC(m_conn_context, "Signature missmatch on accepted connection");
|
LOG_ERROR_CC(m_conn_context, "Signature mismatch on accepted connection");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
is_continue = false;
|
is_continue = false;
|
||||||
@ -113,7 +113,7 @@ namespace levin
|
|||||||
bucket_head* phead = (bucket_head*)m_cach_in_buffer.data();
|
bucket_head* phead = (bucket_head*)m_cach_in_buffer.data();
|
||||||
if(LEVIN_SIGNATURE != phead->m_signature)
|
if(LEVIN_SIGNATURE != phead->m_signature)
|
||||||
{
|
{
|
||||||
LOG_ERROR_CC(m_conn_context, "Signature missmatch on accepted connection");
|
LOG_ERROR_CC(m_conn_context, "Signature mismatch on accepted connection");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
m_current_head = *phead;
|
m_current_head = *phead;
|
||||||
|
@ -473,7 +473,7 @@ namespace net_utils
|
|||||||
|
|
||||||
if(bytes_transfered != buff.size())
|
if(bytes_transfered != buff.size())
|
||||||
{
|
{
|
||||||
LOG_ERROR("Transferred missmatch with transfer_at_least value: m_bytes_transferred=" << bytes_transfered << " at_least value=" << buff.size());
|
LOG_ERROR("Transferred mismatch with transfer_at_least value: m_bytes_transferred=" << bytes_transfered << " at_least value=" << buff.size());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ namespace epee
|
|||||||
pbuff->m_signature_b != PORTABLE_STORAGE_SIGNATUREB
|
pbuff->m_signature_b != PORTABLE_STORAGE_SIGNATUREB
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
LOG_ERROR("portable_storage: wrong binary format - signature missmatch");
|
LOG_ERROR("portable_storage: wrong binary format - signature mismatch");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(pbuff->m_ver != PORTABLE_STORAGE_FORMAT_VER)
|
if(pbuff->m_ver != PORTABLE_STORAGE_FORMAT_VER)
|
||||||
|
@ -101,7 +101,7 @@ public:
|
|||||||
*
|
*
|
||||||
* @return A vector of strings containing a TXT record; or an empty vector
|
* @return A vector of strings containing a TXT record; or an empty vector
|
||||||
*/
|
*/
|
||||||
// TODO: modify this to accomodate DNSSEC
|
// TODO: modify this to accommodate DNSSEC
|
||||||
std::vector<std::string> get_txt_record(const std::string& url, bool& dnssec_available, bool& dnssec_valid);
|
std::vector<std::string> get_txt_record(const std::string& url, bool& dnssec_available, bool& dnssec_valid);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -142,7 +142,7 @@ private:
|
|||||||
*
|
*
|
||||||
* @return A vector of strings containing the requested record; or an empty vector
|
* @return A vector of strings containing the requested record; or an empty vector
|
||||||
*/
|
*/
|
||||||
// TODO: modify this to accomodate DNSSEC
|
// TODO: modify this to accommodate DNSSEC
|
||||||
std::vector<std::string> get_record(const std::string& url, int record_type, std::string (*reader)(const char *,size_t), bool& dnssec_available, bool& dnssec_valid);
|
std::vector<std::string> get_record(const std::string& url, int record_type, std::string (*reader)(const char *,size_t), bool& dnssec_available, bool& dnssec_valid);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -4359,7 +4359,7 @@ std::vector<wallet2::pending_tx> wallet2::create_transactions_2(std::vector<cryp
|
|||||||
// try to pick outputs not from the same block. We will get two outputs, one for
|
// try to pick outputs not from the same block. We will get two outputs, one for
|
||||||
// the destination, and one for change.
|
// the destination, and one for change.
|
||||||
LOG_PRINT_L2("checking preferred");
|
LOG_PRINT_L2("checking preferred");
|
||||||
std::vector<size_t> prefered_inputs;
|
std::vector<size_t> preferred_inputs;
|
||||||
uint64_t rct_outs_needed = 2 * (fake_outs_count + 1);
|
uint64_t rct_outs_needed = 2 * (fake_outs_count + 1);
|
||||||
rct_outs_needed += 100; // some fudge factor since we don't know how many are locked
|
rct_outs_needed += 100; // some fudge factor since we don't know how many are locked
|
||||||
if (use_rct && get_num_rct_outputs() >= rct_outs_needed)
|
if (use_rct && get_num_rct_outputs() >= rct_outs_needed)
|
||||||
@ -4367,12 +4367,12 @@ std::vector<wallet2::pending_tx> wallet2::create_transactions_2(std::vector<cryp
|
|||||||
// this is used to build a tx that's 1 or 2 inputs, and 2 outputs, which
|
// this is used to build a tx that's 1 or 2 inputs, and 2 outputs, which
|
||||||
// will get us a known fee.
|
// will get us a known fee.
|
||||||
uint64_t estimated_fee = calculate_fee(fee_per_kb, estimate_rct_tx_size(2, fake_outs_count + 1, 2), fee_multiplier);
|
uint64_t estimated_fee = calculate_fee(fee_per_kb, estimate_rct_tx_size(2, fake_outs_count + 1, 2), fee_multiplier);
|
||||||
prefered_inputs = pick_preferred_rct_inputs(needed_money + estimated_fee);
|
preferred_inputs = pick_preferred_rct_inputs(needed_money + estimated_fee);
|
||||||
if (!prefered_inputs.empty())
|
if (!preferred_inputs.empty())
|
||||||
{
|
{
|
||||||
string s;
|
string s;
|
||||||
for (auto i: prefered_inputs) s += boost::lexical_cast<std::string>(i) + "(" + print_money(m_transfers[i].amount()) + ") ";
|
for (auto i: preferred_inputs) s += boost::lexical_cast<std::string>(i) + "(" + print_money(m_transfers[i].amount()) + ") ";
|
||||||
LOG_PRINT_L1("Found prefered rct inputs for rct tx: " << s);
|
LOG_PRINT_L1("Found preferred rct inputs for rct tx: " << s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG_PRINT_L2("done checking preferred");
|
LOG_PRINT_L2("done checking preferred");
|
||||||
@ -4427,8 +4427,8 @@ std::vector<wallet2::pending_tx> wallet2::create_transactions_2(std::vector<cryp
|
|||||||
}
|
}
|
||||||
pop_if_present(unused_transfers_indices, idx);
|
pop_if_present(unused_transfers_indices, idx);
|
||||||
pop_if_present(unused_dust_indices, idx);
|
pop_if_present(unused_dust_indices, idx);
|
||||||
} else if (!prefered_inputs.empty()) {
|
} else if (!preferred_inputs.empty()) {
|
||||||
idx = pop_back(prefered_inputs);
|
idx = pop_back(preferred_inputs);
|
||||||
pop_if_present(unused_transfers_indices, idx);
|
pop_if_present(unused_transfers_indices, idx);
|
||||||
pop_if_present(unused_dust_indices, idx);
|
pop_if_present(unused_dust_indices, idx);
|
||||||
} else
|
} else
|
||||||
@ -4521,7 +4521,7 @@ std::vector<wallet2::pending_tx> wallet2::create_transactions_2(std::vector<cryp
|
|||||||
{
|
{
|
||||||
uint64_t new_paid_amount = i->amount /*+ test_ptx.fee*/ - needed_fee;
|
uint64_t new_paid_amount = i->amount /*+ test_ptx.fee*/ - needed_fee;
|
||||||
LOG_PRINT_L2("Adjusting amount paid to " << get_account_address_as_str(m_testnet, i->addr) << " from " <<
|
LOG_PRINT_L2("Adjusting amount paid to " << get_account_address_as_str(m_testnet, i->addr) << " from " <<
|
||||||
print_money(i->amount) << " to " << print_money(new_paid_amount) << " to accomodate " <<
|
print_money(i->amount) << " to " << print_money(new_paid_amount) << " to accommodate " <<
|
||||||
print_money(needed_fee) << " fee");
|
print_money(needed_fee) << " fee");
|
||||||
dsts[0].amount += i->amount - new_paid_amount;
|
dsts[0].amount += i->amount - new_paid_amount;
|
||||||
i->amount = new_paid_amount;
|
i->amount = new_paid_amount;
|
||||||
|
Loading…
Reference in New Issue
Block a user