Skip to content

Commit

Permalink
fix(op-batcher): initAltDA before initChannelConfig (ethereum-optimis…
Browse files Browse the repository at this point in the history
…m#11816)

* fix(op-batcher): initAltDA before initChannelConfig

* chore(op-bastcher): fix comment
  • Loading branch information
emilianobonassi authored Sep 10, 2024
1 parent 219ebe0 commit 91e306b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions op-batcher/batcher/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ func (bs *BatcherService) initFromCLIConfig(ctx context.Context, version string,
if err := bs.initTxManager(cfg); err != nil {
return fmt.Errorf("failed to init Tx manager: %w", err)
}
// must be init before driver and channel config
if err := bs.initAltDA(cfg); err != nil {
return fmt.Errorf("failed to init AltDA: %w", err)
}
if err := bs.initChannelConfig(cfg); err != nil {
return fmt.Errorf("failed to init channel config: %w", err)
}
Expand All @@ -115,10 +119,6 @@ func (bs *BatcherService) initFromCLIConfig(ctx context.Context, version string,
if err := bs.initPProf(cfg); err != nil {
return fmt.Errorf("failed to init profiling: %w", err)
}
// init before driver
if err := bs.initAltDA(cfg); err != nil {
return fmt.Errorf("failed to init AltDA: %w", err)
}
bs.initDriver()
if err := bs.initRPCServer(cfg); err != nil {
return fmt.Errorf("failed to start RPC server: %w", err)
Expand Down

0 comments on commit 91e306b

Please sign in to comment.