Skip to content

Commit

Permalink
fallback to stored best block number in getBestBranch
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurélien Richez committed Jul 29, 2021
1 parent f43918f commit 3a61349
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -75,6 +75,7 @@ class BlockchainReader(
val number = getBestBlockNumber()
blockNumberMappingStorage
.get(number)
.orElse(blockNumberMappingStorage.get(appStateStorage.getBestBlockNumber()))
.map(hash => BestBranch(hash, number))
.getOrElse(EmptyBranch)
}
Expand Down

0 comments on commit 3a61349

Please sign in to comment.