From ed12c0a49d3c64d170aca9e66ef32a57d7933eeb Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Wed, 27 Apr 2022 12:21:22 +0200 Subject: blockstorage, refactor: make GetFirstStoredBlock() a member of BlockManager instead of a global --- src/index/base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index') diff --git a/src/index/base.cpp b/src/index/base.cpp index 488a214ccf..db4070b911 100644 --- a/src/index/base.cpp +++ b/src/index/base.cpp @@ -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 -- cgit v1.2.3