Skip to content

Commit 40c82e8

Browse files
author
Leonor Boga
authored
[ETCM-1152] Remove double call to appStateStorage.getBestBlockNumber() in getBestBranch() (#1115)
1 parent 03daea8 commit 40c82e8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/scala/io/iohk/ethereum/domain/BlockchainReader.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ class BlockchainReader(
7878
val number = getBestBlockNumber()
7979
blockNumberMappingStorage
8080
.get(number)
81-
.orElse(blockNumberMappingStorage.get(appStateStorage.getBestBlockNumber()))
8281
.map(hash => BestBranch(hash, number))
8382
.getOrElse(EmptyBranch)
8483
}

0 commit comments

Comments
 (0)