Skip to content

Commit 04f78ab

Browse files
committed
Do not reject based on mempool min fee when bypass_limits is set.
This should have always been the case, but we will correctly trim to size after a reorg which is when bypass_limits is set.
1 parent fd849e1 commit 04f78ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool
620620
strprintf("%d", nSigOpsCost));
621621

622622
CAmount mempoolRejectFee = pool.GetMinFee(gArgs.GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000).GetFee(nSize);
623-
if (mempoolRejectFee > 0 && nModifiedFees < mempoolRejectFee) {
623+
if (!bypass_limits && mempoolRejectFee > 0 && nModifiedFees < mempoolRejectFee) {
624624
return state.DoS(0, false, REJECT_INSUFFICIENTFEE, "mempool min fee not met", false, strprintf("%d < %d", nFees, mempoolRejectFee));
625625
}
626626

0 commit comments

Comments
 (0)