diff options
| author | Gregory Sanders <[email protected]> | 2018-03-21 15:29:23 -0400 |
|---|---|---|
| committer | Gregory Sanders <[email protected]> | 2018-03-21 15:29:23 -0400 |
| commit | 5805d6fead8d54ec14bfc89991d692bd75940d56 (patch) | |
| tree | 8a7e07053b732c5a9440d6f4b1cd3df251a7367e /src | |
| parent | Merge #12746: tests: Remove unused argument max_invalid from check_estimates(... (diff) | |
| download | discoin-5805d6fead8d54ec14bfc89991d692bd75940d56.tar.xz discoin-5805d6fead8d54ec14bfc89991d692bd75940d56.zip | |
feebumper: discard change outputs below discard rate
Diffstat (limited to 'src')
| -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 82a5017de..5c34b39ec 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); |