Skip to content

Commit

Permalink
fix: remove beacon config check
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoieh committed Apr 29, 2024
1 parent 8f4c61c commit 1b1a90f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions op-node/node/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ func (cfg *Config) Check() error {
if err := cfg.L2.Check(); err != nil {
return fmt.Errorf("l2 endpoint config error: %w", err)
}
if cfg.Rollup.EcotoneTime != nil {
if cfg.Beacon == nil {
return fmt.Errorf("the Ecotone upgrade is scheduled but no L1 Beacon API endpoint is configured")
}
if err := cfg.Beacon.Check(); err != nil {
return fmt.Errorf("misconfigured L1 Beacon API endpoint: %w", err)
}
}
// if cfg.Rollup.EcotoneTime != nil {
// if cfg.Beacon == nil {
// return fmt.Errorf("the Ecotone upgrade is scheduled but no L1 Beacon API endpoint is configured")
// }
// if err := cfg.Beacon.Check(); err != nil {
// return fmt.Errorf("misconfigured L1 Beacon API endpoint: %w", err)
// }
// }
if err := cfg.Rollup.Check(); err != nil {
return fmt.Errorf("rollup config error: %w", err)
}
Expand Down

0 comments on commit 1b1a90f

Please sign in to comment.