diff options
author | Carl Dong <contact@carldong.me> | 2020-09-16 17:00:04 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-02-18 14:43:28 -0500 |
commit | 229bc37b5f18cffbc85efbad3b6e9047c6951e95 (patch) | |
tree | 9ff10d35067ac507f3d5a503c31e1556b553bba2 /src/validation.h | |
parent | d0da7ea57ab932eca956458fb3633585ff3c0003 (diff) |
validation: Pass in chainstate to ::AcceptToMemoryPool
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 2 |
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); |