Skip to content

Commit 5805d6f

Browse files
committed
feebumper: discard change outputs below discard rate
1 parent 2405ce1 commit 5805d6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/feebumper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Result CreateTransaction(const CWallet* wallet, const uint256& txid, const CCoin
194194

195195
// If the output would become dust, discard it (converting the dust to fee)
196196
poutput->nValue -= nDelta;
197-
if (poutput->nValue <= GetDustThreshold(*poutput, ::dustRelayFee)) {
197+
if (poutput->nValue <= GetDustThreshold(*poutput, GetDiscardRate(::feeEstimator))) {
198198
LogPrint(BCLog::RPC, "Bumping fee and discarding dust output\n");
199199
new_fee += poutput->nValue;
200200
mtx.vout.erase(mtx.vout.begin() + nOutput);

0 commit comments

Comments
 (0)