Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterli committed Aug 20, 2024
1 parent 030c73b commit b8dec47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions op-node/rollup/finality/finalizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,6 @@ func (fi *Finalizer) findLastBtcFinalizedL2Block(
}

lastFinalizedBlockNumber, err := fi.babylonFinalityClient.QueryBlockRangeBabylonFinalized(queryBlocks)
fi.log.Debug("QueryBlockRangeBabylonFinalized", "lastFinalizedBlockNumber", lastFinalizedBlockNumber)

if err != nil {
// on CriticalError, the chain will get stuck because
// op-e2e/actions/l2_verifier.go will detect it and panic
Expand All @@ -374,6 +372,7 @@ func (fi *Finalizer) findLastBtcFinalizedL2Block(
}

if lastFinalizedBlockNumber != nil {
fi.log.Debug("QueryBlockRangeBabylonFinalized", "lastFinalizedBlockNumber", *lastFinalizedBlockNumber)
res := l2Blocks[*lastFinalizedBlockNumber]
return &res
}
Expand Down

0 comments on commit b8dec47

Please sign in to comment.