aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-09-16 17:00:04 -0400
committerCarl Dong <contact@carldong.me>2021-02-18 14:43:28 -0500
commit229bc37b5f18cffbc85efbad3b6e9047c6951e95 (patch)
tree9ff10d35067ac507f3d5a503c31e1556b553bba2 /src/validation.h
parentd0da7ea57ab932eca956458fb3633585ff3c0003 (diff)
downloadbitcoin-229bc37b5f18cffbc85efbad3b6e9047c6951e95.tar.xz
validation: Pass in chainstate to ::AcceptToMemoryPool
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h
index cc59b8f706..80ef0eaa7d 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -225,6 +225,8 @@ struct MempoolAcceptResult {
*/
MempoolAcceptResult AcceptToMemoryPool(CTxMemPool& pool, const CTransactionRef& tx,
bool bypass_limits, bool test_accept=false) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
+MempoolAcceptResult AcceptToMemoryPool(CChainState& active_chainstate, CTxMemPool& pool, const CTransactionRef& tx,
+ bool bypass_limits, bool test_accept=false) EXCLUSIVE_LOCKS_REQUIRED(cs_main);
/** Get the BIP9 state for a given deployment at the current tip. */
ThresholdState VersionBitsTipState(const Consensus::Params& params, Consensus::DeploymentPos pos);