[refactor] pass coinsview and height to check()

Removes check's dependency on validation.h
This commit is contained in:
glozow
2021-09-29 19:36:01 +01:00
parent ed6115f1ea
commit 082c5bf099
6 changed files with 11 additions and 10 deletions

View File

@@ -2486,7 +2486,7 @@ bool CChainState::ActivateBestChainStep(BlockValidationState& state, CBlockIndex
// any disconnected transactions back to the mempool.
MaybeUpdateMempoolForReorg(disconnectpool, true);
}
if (m_mempool) m_mempool->check(*this);
if (m_mempool) m_mempool->check(this->CoinsTip(), this->m_chain.Height() + 1);
CheckForkWarningConditions();