diff options
author | Gregory Sanders <gsanders87@gmail.com> | 2018-03-21 15:29:23 -0400 |
---|---|---|
committer | Gregory Sanders <gsanders87@gmail.com> | 2018-03-21 15:29:23 -0400 |
commit | 5805d6fead8d54ec14bfc89991d692bd75940d56 (patch) | |
tree | 8a7e07053b732c5a9440d6f4b1cd3df251a7367e /src/wallet/feebumper.cpp | |
parent | 2405ce1df043f778b8efb9205009500cbc17313a (diff) |
feebumper: discard change outputs below discard rate
Diffstat (limited to 'src/wallet/feebumper.cpp')
-rw-r--r-- | src/wallet/feebumper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/feebumper.cpp b/src/wallet/feebumper.cpp index 82a5017de0..5c34b39ec8 100644 --- a/src/wallet/feebumper.cpp +++ b/src/wallet/feebumper.cpp @@ -194,7 +194,7 @@ Result CreateTransaction(const CWallet* wallet, const uint256& txid, const CCoin // If the output would become dust, discard it (converting the dust to fee) poutput->nValue -= nDelta; - if (poutput->nValue <= GetDustThreshold(*poutput, ::dustRelayFee)) { + if (poutput->nValue <= GetDustThreshold(*poutput, GetDiscardRate(::feeEstimator))) { LogPrint(BCLog::RPC, "Bumping fee and discarding dust output\n"); new_fee += poutput->nValue; mtx.vout.erase(mtx.vout.begin() + nOutput); |