Skip to content

Commit b733663

Browse files
committed
no need to check for reorg when indexer is not live
1 parent 3cd7742 commit b733663

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/committer/reorg.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ func InitReorg() {
1616
}
1717

1818
func RunReorgValidator() {
19+
// indexer is not live, so we don't need to check for reorgs
20+
if !config.Cfg.CommitterIsLive {
21+
return
22+
}
23+
1924
lastBlockCheck := int64(0)
2025
for {
2126
startBlock, endBlock, err := getReorgRange()

0 commit comments

Comments
 (0)