validation: Pass in chainstate to ::AcceptToMemoryPool

This commit is contained in:
Carl Dong
2020-09-16 17:00:04 -04:00
parent d0da7ea57a
commit 229bc37b5f
2 changed files with 10 additions and 2 deletions

View File

@ -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);