mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02: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:
parent
1fb7b2c595
commit
4744efc9ba
4 changed files with 11 additions and 8 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue