Skip to content

Commit ab75d7a

Browse files
committed
reorg toggle
1 parent c890cda commit ab75d7a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

configs/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ type Config struct {
7979
RedisPassword string `env:"REDIS_PASSWORD"`
8080
RedisDB int `env:"REDIS_DB" envDefault:"0"`
8181
ValidationMode string `env:"VALIDATION_MODE" envDefault:"minimal"`
82+
EnableReorgValidation bool `env:"ENABLE_REORG_VALIDATION" envDefault:"true"`
8283
}
8384

8485
var Cfg Config

internal/committer/reorg.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ func RunReorgValidator() {
2020
if !config.Cfg.CommitterIsLive {
2121
return
2222
}
23+
if !config.Cfg.EnableReorgValidation {
24+
return
25+
}
2326

2427
lastBlockCheck := int64(0)
2528
for {

0 commit comments

Comments
 (0)