Skip to content

Commit f968988

Browse files
committed
reorg lag by 100 blocks
1 parent 385f7d7 commit f968988

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/committer/reorg.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func RunReorgValidator() {
3030
continue
3131
}
3232

33-
if endBlock == lastBlockCheck || endBlock-startBlock < 5 {
33+
if endBlock == lastBlockCheck || endBlock-startBlock < 100 {
3434
log.Debug().Msg("Not enough new blocks to check. Sleeping for 1 minute.")
3535
time.Sleep(1 * time.Minute)
3636
continue
@@ -59,7 +59,7 @@ func getReorgRange() (int64, int64, error) {
5959
return 0, 0, fmt.Errorf("failed to get max block number: %w", err)
6060
}
6161

62-
endBlock = min(endBlock-5, startBlock+100) // lag by some blocks for safety
62+
endBlock = min(endBlock-100, startBlock+100) // lag by some blocks for safety
6363

6464
if startBlock >= endBlock {
6565
return 0, 0, fmt.Errorf("start block is greater than end block (%d >= %d)", startBlock, endBlock)

0 commit comments

Comments
 (0)