validation: Pass in chainstate to CTxMemPool::check

This is the only instance where validation reaches for something outside
of it.
This commit is contained in:
Carl Dong
2020-09-09 16:05:39 -04:00
parent 1fb7b2c595
commit 4744efc9ba
4 changed files with 11 additions and 8 deletions

View File

@@ -2799,7 +2799,7 @@ bool CChainState::ActivateBestChainStep(BlockValidationState& state, const CChai
// any disconnected transactions back to the mempool.
UpdateMempoolForReorg(::ChainstateActive(), m_mempool, disconnectpool, true);
}
m_mempool.check(&CoinsTip());
m_mempool.check(*this);
CheckForkWarningConditions();