From bb25d8e55bf3ba7b0da0d72bf8f37bed46840042 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 14 Oct 2015 00:57:20 +0100 Subject: [PATCH] wallet2: really include non canonical outputs in dust sweep --- src/wallet/wallet2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 10e416065..b00553bfa 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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) { 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();