mirror of
https://github.com/monero-project/monero.git
synced 2025-07-22 16:10:43 -04:00
Merge pull request #634
7fc6fa3
wallet: forbid dust altogether in output selection where appropriate (moneromooo-monero)5e1a739
blockchain: log number of outputs available for a new tx (moneromooo-monero)
This commit is contained in:
commit
569316aea3
3 changed files with 15 additions and 5 deletions
|
@ -2043,6 +2043,7 @@ bool Blockchain::check_tx_inputs(const transaction& tx, uint64_t* pmax_used_bloc
|
|||
{
|
||||
const txin_to_key& in_to_key = boost::get<txin_to_key>(txin);
|
||||
uint64_t n_outputs = m_db->get_num_outputs(in_to_key.amount);
|
||||
LOG_PRINT_L2("output size " << print_money(in_to_key.amount) << ": " << n_outputs << " available");
|
||||
// n_outputs includes the output we're considering
|
||||
if (n_outputs <= 2)
|
||||
++n_unmixable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue