Skip to content

Commit

Permalink
sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
joanestebanr committed Apr 30, 2024
1 parent 292cf71 commit eaaffed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions synchronizer/l1_check_block/pre_check_l1block.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ func (p *PreCheckL1BlockHash) Step(ctx context.Context) error {
log.Warnf("%s: fromBlockNumber(%s) %d is greater than toBlockNumber(%s) %d, Check configuration", p.Name(), p.InitialSegmentBlockNumber.Description(), from, p.EndSegmentBlockNumber.Description(), to)
return nil
}
return p.StepFromTo(ctx, from, to)
}

func (p *PreCheckL1BlockHash) StepFromTo(ctx context.Context, from, to uint64) error {
blocksToCheck, err := p.State.GetUncheckedBlocks(ctx, from, to, nil)
if err != nil {
log.Warnf("%s can't get unchecked blocks, so it discard the reorg error", p.Name())
Expand Down

0 comments on commit eaaffed

Please sign in to comment.