Keep dust utxo if mixable, no matter sweeping or not

pull/23/head
Guten Ye 5 years ago
parent 00c9639650
commit 58ada5b4c4

@ -288,15 +288,11 @@ void monero_transfer_utils::send_step1__prepare_params_for_get_decoys(
continue; // skip rct outputs if not creating rct tx continue; // skip rct outputs if not creating rct tx
} }
if (out.amount < monero_fork_rules::dust_threshold()) { // amount is dusty.. if (out.amount < monero_fork_rules::dust_threshold()) { // amount is dusty..
if (!is_sweeping) { if (out.rct == none || (*out.rct).empty()) {
// cout << "Not sweeping, and found a dusty (though maybe mixable) output... skipping it!" << endl; // cout << "Found a dusty but unmixable (non-rct) output... skipping it!" << endl;
continue;
}
if (out.rct == none || (*out.rct).empty()) { // Sweeping, and found a dusty but unmixable (non-rct) output... skipping it!
// cout << "Sweeping, and found a dusty but unmixable (non-rct) output... skipping it!" << endl;
continue; continue;
} else { } else {
// cout << "Sweeping and found a dusty but mixable (rct) amount... keeping it!" << endl; // cout << "Found a dusty but mixable (rct) amount... keeping it!" << endl;
} }
} }
using_outs_amount += out.amount; using_outs_amount += out.amount;

Loading…
Cancel
Save