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 fb67c34 commit f388f7dCopy full SHA for f388f7d
src/main/scala/io/iohk/ethereum/blockchain/sync/regular/BlockFetcher.scala
@@ -278,8 +278,7 @@ class BlockFetcher(
278
//keep fetcher state updated in case new checkpoint block or mined block was imported
279
case InternalLastBlockImport(blockNr) =>
280
log.debug(s"New last block $blockNr imported from the inside")
281
- val newLastBlock = blockNr.max(state.lastBlock)
282
- val newState = state.withLastBlock(newLastBlock).withPossibleNewTopAt(blockNr)
+ val newState = state.withLastBlock(blockNr).withPossibleNewTopAt(blockNr)
283
284
fetchBlocks(newState)
285
}
0 commit comments