wallet2: really include non canonical outputs in dust sweep

This commit is contained in:
moneromooo-monero 2015-10-14 00:57:20 +01:00
parent ee27c31c59
commit bb25d8e55b
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 1 additions and 1 deletions

View File

@ -1950,7 +1950,7 @@ void wallet2::transfer_dust(size_t num_outputs, uint64_t unlock_time, uint64_t n
for (transfer_container::iterator i = m_transfers.begin(); i != m_transfers.end(); ++i) for (transfer_container::iterator i = m_transfers.begin(); i != m_transfers.end(); ++i)
{ {
const transfer_details& td = *i; const transfer_details& td = *i;
if (!td.m_spent && td.amount() < dust_policy.dust_threshold && is_transfer_unlocked(td)) if (!td.m_spent && (td.amount() < dust_policy.dust_threshold || !is_valid_decomposed_amount(td.amount())) && is_transfer_unlocked(td))
{ {
selected_transfers.push_back (i); selected_transfers.push_back (i);
money += td.amount(); money += td.amount();