Fix 'mempool min fee not met' debug output

Output the value that is tested, rather than the unmodified fee value.
This commit is contained in:
Ben Woosley 2018-02-05 10:53:33 -05:00
parent 663911ed58
commit c04e0f607a
No known key found for this signature in database
GPG Key ID: 6EE5F3785F78B345
1 changed files with 1 additions and 1 deletions

View File

@ -712,7 +712,7 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool
CAmount mempoolRejectFee = pool.GetMinFee(gArgs.GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000).GetFee(nSize);
if (!bypass_limits && mempoolRejectFee > 0 && nModifiedFees < mempoolRejectFee) {
return state.DoS(0, false, REJECT_INSUFFICIENTFEE, "mempool min fee not met", false, strprintf("%d < %d", nFees, mempoolRejectFee));
return state.DoS(0, false, REJECT_INSUFFICIENTFEE, "mempool min fee not met", false, strprintf("%d < %d", nModifiedFees, mempoolRejectFee));
}
// No transactions are allowed below minRelayTxFee except from disconnected blocks