blockstorage, refactor: make GetFirstStoredBlock() a member of BlockManager

instead of a global
This commit is contained in:
Jon Atack
2022-04-27 12:21:22 +02:00
parent dabec99013
commit ed12c0a49d
4 changed files with 8 additions and 7 deletions

View File

@@ -75,7 +75,7 @@ bool BaseIndex::Init()
if (!m_best_block_index) {
// index is not built yet
// make sure we have all block data back to the genesis
prune_violation = node::GetFirstStoredBlock(active_chain.Tip()) != active_chain.Genesis();
prune_violation = m_chainstate->m_blockman.GetFirstStoredBlock(active_chain.Tip()) != active_chain.Genesis();
}
// in case the index has a best block set and is not fully synced
// check if we have the required blocks to continue building the index