diff --git a/src/index/blockfilterindex.cpp b/src/index/blockfilterindex.cpp index bc7e68c01c3cd0..17bc01c3744803 100644 --- a/src/index/blockfilterindex.cpp +++ b/src/index/blockfilterindex.cpp @@ -225,7 +225,7 @@ bool BlockFilterIndex::CustomAppend(const interfaces::BlockInfo& block) CBlockUndo block_undo; uint256 prev_header; - if (block.height > 0) { + if (block.height > m_start_height) { // pindex variable gives indexing code access to node internals. It // will be removed in upcoming commit const CBlockIndex* pindex = WITH_LOCK(cs_main, return m_chainstate->m_blockman.LookupBlockIndex(block.hash));