aboutsummaryrefslogtreecommitdiff
path: root/src/index
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2022-04-27 12:21:22 +0200
committerJon Atack <jon@atack.com>2022-04-28 20:42:08 +0200
commited12c0a49d3c64d170aca9e66ef32a57d7933eeb (patch)
tree6f74d670d7c39c3cdd4531e48156f5e3fc6757a6 /src/index
parentdabec990135cc32584e822126ec49f8b31350837 (diff)
downloadbitcoin-ed12c0a49d3c64d170aca9e66ef32a57d7933eeb.tar.xz
blockstorage, refactor: make GetFirstStoredBlock() a member of BlockManager
instead of a global
Diffstat (limited to 'src/index')
-rw-r--r--src/index/base.cpp2
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