diff options
| author | practicalswift <[email protected]> | 2018-09-24 15:00:44 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-09-24 16:03:06 +0200 |
| commit | 97ddc6026b4e14ee0bb4c5b04a7824ac0a7e23ab (patch) | |
| tree | 01b6066129d60953283c4a869d2985a02f16bf70 /src/validation.cpp | |
| parent | Merge #14287: tests: Use MakeUnique to construct objects owned by unique_ptrs (diff) | |
| download | discoin-97ddc6026b4e14ee0bb4c5b04a7824ac0a7e23ab.tar.xz discoin-97ddc6026b4e14ee0bb4c5b04a7824ac0a7e23ab.zip | |
validation: Pass chainparams in AcceptToMemoryPoolWorker(...)
Diffstat (limited to 'src/validation.cpp')
| -rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 458458d85..80ae2428d 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -918,7 +918,7 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool // There is a similar check in CreateNewBlock() to prevent creating // invalid blocks (using TestBlockValidity), however allowing such // transactions into the mempool can be exploited as a DoS attack. - unsigned int currentBlockScriptVerifyFlags = GetBlockScriptFlags(chainActive.Tip(), Params().GetConsensus()); + unsigned int currentBlockScriptVerifyFlags = GetBlockScriptFlags(chainActive.Tip(), chainparams.GetConsensus()); if (!CheckInputsFromMempoolAndCache(tx, state, view, pool, currentBlockScriptVerifyFlags, true, txdata)) { return error("%s: BUG! PLEASE REPORT THIS! CheckInputs failed against latest-block but not STANDARD flags %s, %s", __func__, hash.ToString(), FormatStateMessage(state)); |