Skip to content

Commit

Permalink
integrity: fix no gaps in bor events integrity check (#13413)
Browse files Browse the repository at this point in the history
logic is incorrect, prevEventId should be 0 not 1 since events start at
1 so when we check the first event the prevEventId should be 0
  • Loading branch information
taratorio authored Jan 13, 2025
1 parent 2b7119a commit 4053930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/integrity/no_gaps_bor_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func NoGapsInBorEvents(ctx context.Context, db kv.RoDB, blockReader services.Ful

snapshots := blockReader.BorSnapshots().(*heimdall.RoSnapshots)

var prevEventId uint64 = 1
var prevEventId uint64
var maxBlockNum uint64

if to > 0 {
Expand Down

0 comments on commit 4053930

Please sign in to comment.