We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 555880c commit 56020acCopy full SHA for 56020ac
src/main/scala/io/iohk/ethereum/domain/branch/BestBlockchainBranch.scala
@@ -30,5 +30,7 @@ class BestBlockchainBranch(
30
} else None
31
32
override def getHashByBlockNumber(number: BigInt): Option[ByteString] =
33
- bestChainBlockNumberMappingStorage.get(number)
+ if (tipBlockHeader.number >= number && number >= 0) {
34
+ bestChainBlockNumberMappingStorage.get(number)
35
+ } else None
36
}
0 commit comments