Skip to content

Commit

Permalink
Review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mashonskii committed Sep 12, 2024
1 parent d43c935 commit 8c18453
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/units/ELUpdater.scala
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ class ELUpdater(
def check(missedBlock: ContractBlock): Unit = {
state match {
case w @ Working(epochInfo, lastEcBlock, finalizedBlock, mainChainInfo, _, fc: FollowingChain, _, returnToMainChainInfo)
if fc.nextExpectedBlock.contains(missedBlock) && canSupportAnotherAltChain(fc.nodeChainInfo) =>
if fc.nextExpectedBlock.map(_.hash).contains(missedBlock.hash) && canSupportAnotherAltChain(fc.nodeChainInfo) =>
logger.debug(s"Block ${missedBlock.hash} wasn't received for $WaitRequestedBlockTimeout, need to switch to alternative chain")
(for {
lastValidBlock <- getAltChainReferenceBlock(fc.nodeChainInfo, missedBlock)
Expand Down

0 comments on commit 8c18453

Please sign in to comment.