Commit 91e306b0 authored by Emiliano Bonassi's avatar Emiliano Bonassi Committed by GitHub

fix(op-batcher): initAltDA before initChannelConfig (#11816)

* fix(op-batcher): initAltDA before initChannelConfig

* chore(op-bastcher): fix comment
parent 219ebe00
......@@ -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)
}
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment