mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-21 15:50:07 +01:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user