Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions espresso/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,8 @@ func BatchStreamerFromCLIConfig[B Batch](
return nil, fmt.Errorf("failed to dial Rollup L1 RPC at %s: %w", cfg.RollupL1URL, err)
}

espressoClient, err := espressoClient.NewMultipleNodesClient(cfg.QueryServiceURLs)
if err != nil {
return nil, fmt.Errorf("failed to create Espresso client: %w", err)
}
urlZero := cfg.QueryServiceURLs[0]
espressoClient := espressoClient.NewClient(urlZero)

espressoLightClient, err := espressoLightClient.NewLightclientCaller(cfg.LightClientAddr, l1Client)
if err != nil {
Expand Down
7 changes: 3 additions & 4 deletions op-batcher/batcher/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,10 +565,9 @@ func (bs *BatcherService) initEspresso(cfg *CLIConfig) error {
bs.UseEspresso = true
bs.EspressoPollInterval = cfg.Espresso.PollInterval

espressoClient, err := espressoClient.NewMultipleNodesClient(cfg.Espresso.QueryServiceURLs)
if err != nil {
return fmt.Errorf("failed to create Espresso client: %w", err)
}
urlZero := cfg.Espresso.QueryServiceURLs[0]
espressoClient := espressoClient.NewClient(urlZero)

bs.EspressoClient = espressoClient

if err := bs.initKeyPair(); err != nil {
Expand Down
Loading