diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-14 00:57:20 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-14 00:58:08 +0100 |
commit | 5ea2f936ae3786af0e2919a8f4a49150a457ec68 (patch) | |
tree | 8f589b8bad3866ccbc0e2d343b3e1bcc10fbce8a | |
parent | Merge pull request #427 (diff) | |
download | monero-5ea2f936ae3786af0e2919a8f4a49150a457ec68.tar.xz |
wallet2: really include non canonical outputs in dust sweep
-rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index b27b303df..cca409d9a 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -1879,7 +1879,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) { 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); money += td.amount(); |