mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-31 19:06:10 +02:00
Merge bitcoin/bitcoin#23785: refactor: Move stuff to ChainstateManager
fab6d6b2d1Move pindexBestInvalid to ChainstateManager (MarcoFalke)facd2137ecMove m_failed_blocks to ChainstateManager (MarcoFalke)fa47b5c100Move AcceptBlockHeader to ChainstateManager (MarcoFalke)fa3d62cf7bMove FindForkInGlobalIndex from BlockManager to CChainState (MarcoFalke) Pull request description: Move globals or members of the wrong class to the right class. ACKs for top commit: naumenkogs: ACKfab6d6b2d1Sjors: ACKfab6d6b2d1shaavan: ACKfab6d6b2d1Tree-SHA512: 926cbdfa22838517497bacb79ed5f521f64117c2aacf96a0176f62831b4713314a32abc0213df5ee067edf63e4a4300f752a26006d36e5aab415bb91209a271f
This commit is contained in:
@@ -65,7 +65,7 @@ bool BaseIndex::Init()
|
||||
if (locator.IsNull()) {
|
||||
m_best_block_index = nullptr;
|
||||
} else {
|
||||
m_best_block_index = m_chainstate->m_blockman.FindForkInGlobalIndex(active_chain, locator);
|
||||
m_best_block_index = m_chainstate->FindForkInGlobalIndex(locator);
|
||||
}
|
||||
m_synced = m_best_block_index.load() == active_chain.Tip();
|
||||
if (!m_synced) {
|
||||
|
||||
Reference in New Issue
Block a user