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 13, 2024
1 parent 8c18453 commit d2ca202
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/units/ELUpdater.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1398,11 +1398,11 @@ class ELUpdater(
@tailrec
def loop(curBlock: ContractBlock, acc: List[ContractBlock]): List[ContractBlock] = {
if (curBlock.parentHash == lastValidatedBlock.hash) {
curBlock +: acc
curBlock :: acc
} else {
chainContractClient.getBlock(curBlock.parentHash) match {
case Some(block) =>
loop(block, curBlock +: acc)
loop(block, curBlock :: acc)
case _ =>
logger.error(s"Block ${curBlock.parentHash} not found at contract during full validation")
List.empty
Expand Down

0 comments on commit d2ca202

Please sign in to comment.