mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-24 22:45:41 +01:00
Merge #9615: Wallet incremental fee
4b189c1Change bumpfee result value from 'oldfee' to 'origfee'. (Alex Morcos)0c0c63fIntroduce WALLET_INCREMENTAL_RELAY_FEE (Alex Morcos)e8021ecUse CWallet::GetMinimumFee in bumpfee (Alex Morcos)ae9719aRefactor GetMinimumFee to give option of providing targetFee (Alex Morcos)fe8e8ef[rpc] Add incremental relay fee to getnetworkinfo (Alex Morcos)6b331e6Fix to have miner test aware of new separate block min tx fee (Alex Morcos)de6400dFix missing use of dustRelayFee (Alex Morcos)5b15870Use incrementalRelayFee for BIP 125 replacement (Alex Morcos)
This commit is contained in:
@@ -932,14 +932,14 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState& state, const C
|
||||
// Finally in addition to paying more fees than the conflicts the
|
||||
// new transaction must pay for its own bandwidth.
|
||||
CAmount nDeltaFees = nModifiedFees - nConflictingFees;
|
||||
if (nDeltaFees < ::minRelayTxFee.GetFee(nSize))
|
||||
if (nDeltaFees < ::incrementalRelayFee.GetFee(nSize))
|
||||
{
|
||||
return state.DoS(0, false,
|
||||
REJECT_INSUFFICIENTFEE, "insufficient fee", false,
|
||||
strprintf("rejecting replacement %s, not enough additional fees to relay; %s < %s",
|
||||
hash.ToString(),
|
||||
FormatMoney(nDeltaFees),
|
||||
FormatMoney(::minRelayTxFee.GetFee(nSize))));
|
||||
FormatMoney(::incrementalRelayFee.GetFee(nSize))));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user