aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-10-15 19:35:58 +0200
committerRiccardo Spagni <ric@spagni.net>2015-10-15 19:36:02 +0200
commite6d2460263e091fd0b82f5babfdac21326cc85c4 (patch)
tree4c6ac34b2753672efbc546b3f3dd454ca4c71935 /src
parentMerge pull request #431 (diff)
parentwallet2: really include non canonical outputs in dust sweep (diff)
downloadmonero-e6d2460263e091fd0b82f5babfdac21326cc85c4.tar.xz
Merge pull request #432
5ea2f93 wallet2: really include non canonical outputs in dust sweep (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet2.cpp2
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();