Skip to content

Commit

Permalink
feat: add log
Browse files Browse the repository at this point in the history
  • Loading branch information
iavl committed Feb 24, 2024
1 parent 1ecad30 commit 00d5b73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,12 +306,15 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
}

if config.RollupSequencerHTTP != "" {
log.Info("Rollup sequencer RPC service enabled", "url", config.RollupSequencerHTTP)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
client, err := rpc.DialContext(ctx, config.RollupSequencerHTTP)
cancel()
if err != nil {
log.Error("Failed to connect to rollup sequencer RPC service", "err", err)
return nil, err
}
log.Info("Rollup sequencer RPC service connected", "url", config.RollupSequencerHTTP)
eth.seqRPCService = client
}

Expand Down

0 comments on commit 00d5b73

Please sign in to comment.