Skip to content

Commit c890cda

Browse files
authored
minblock update (#303)
1 parent e0e1ae1 commit c890cda

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
@@ -25,7 +25,7 @@ func RunReorgValidator() {
2525
for {
2626
startBlock, endBlock, err := getReorgRange()
2727
if err != nil {
28-
log.Error().Err(err).Msg("Failed to get reorg range")
28+
log.Debug().Err(err).Msg("Failed to get reorg range")
2929
time.Sleep(2 * time.Second)
3030
continue
3131
}
@@ -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-100, startBlock+100) // lag by some blocks for safety
62+
endBlock = min(endBlock-500, 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)