From 86ce844d3b287012f27c7b0bad6d11c9bdd3120e Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Thu, 28 Apr 2022 11:15:38 +0200 Subject: blockstorage, refactor: pass GetFirstStoredBlock() start_block by reference instead of by pointer, so as to not accept a nullptr. --- 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 db4070b911..f3c9395928 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 = m_chainstate->m_blockman.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