diff --git a/src/Nethermind/Nethermind.Blockchain/BlockTree.Initializer.cs b/src/Nethermind/Nethermind.Blockchain/BlockTree.Initializer.cs index a3fdae24ed3..7425bb3b789 100644 --- a/src/Nethermind/Nethermind.Blockchain/BlockTree.Initializer.cs +++ b/src/Nethermind/Nethermind.Blockchain/BlockTree.Initializer.cs @@ -110,7 +110,7 @@ private bool HeaderExists(long blockNumber, bool findBeacon = false) foreach (BlockInfo blockInfo in level.BlockInfos) { - BlockHeader? header = FindHeader(blockInfo.BlockHash, BlockTreeLookupOptions.None); + BlockHeader? header = FindHeader(blockInfo.BlockHash, BlockTreeLookupOptions.TotalDifficultyNotNeeded | BlockTreeLookupOptions.DoNotCreateLevelIfMissing); if (header is not null) { if (findBeacon && blockInfo.IsBeaconHeader) @@ -138,7 +138,7 @@ private bool BodyExists(long blockNumber, bool findBeacon = false) foreach (BlockInfo blockInfo in level.BlockInfos) { - Block? block = FindBlock(blockInfo.BlockHash, BlockTreeLookupOptions.None); + Block? block = FindBlock(blockInfo.BlockHash, BlockTreeLookupOptions.TotalDifficultyNotNeeded | BlockTreeLookupOptions.DoNotCreateLevelIfMissing); if (block is not null) { if (findBeacon && blockInfo.IsBeaconBody)