Skip to content

Commit 97ddc60

Browse files
validation: Pass chainparams in AcceptToMemoryPoolWorker(...)
1 parent 920c090 commit 97ddc60

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
@@ -918,7 +918,7 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool
918918
// There is a similar check in CreateNewBlock() to prevent creating
919919
// invalid blocks (using TestBlockValidity), however allowing such
920920
// transactions into the mempool can be exploited as a DoS attack.
921-
unsigned int currentBlockScriptVerifyFlags = GetBlockScriptFlags(chainActive.Tip(), Params().GetConsensus());
921+
unsigned int currentBlockScriptVerifyFlags = GetBlockScriptFlags(chainActive.Tip(), chainparams.GetConsensus());
922922
if (!CheckInputsFromMempoolAndCache(tx, state, view, pool, currentBlockScriptVerifyFlags, true, txdata)) {
923923
return error("%s: BUG! PLEASE REPORT THIS! CheckInputs failed against latest-block but not STANDARD flags %s, %s",
924924
__func__, hash.ToString(), FormatStateMessage(state));

0 commit comments

Comments
 (0)