diff options
author | Jon Atack <jon@atack.com> | 2022-04-27 12:21:22 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2022-04-28 20:42:08 +0200 |
commit | ed12c0a49d3c64d170aca9e66ef32a57d7933eeb (patch) | |
tree | 6f74d670d7c39c3cdd4531e48156f5e3fc6757a6 /src/index/base.cpp | |
parent | dabec990135cc32584e822126ec49f8b31350837 (diff) | |
download | bitcoin-ed12c0a49d3c64d170aca9e66ef32a57d7933eeb.tar.xz |
blockstorage, refactor: make GetFirstStoredBlock() a member of BlockManager
instead of a global
Diffstat (limited to 'src/index/base.cpp')
-rw-r--r-- | src/index/base.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |