Skip to content

Commit

Permalink
Merge pull request OffchainLabs#1950 from OffchainLabs/v2.1.x_fix_arb…
Browse files Browse the repository at this point in the history
…node_start

arbnode: init broadcast server before sequencing
  • Loading branch information
PlasmaPower authored Nov 1, 2023
2 parents 4c55843 + f64d4a2 commit e815395
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions arbnode/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,13 @@ func (n *Node) Start(ctx context.Context) error {
return fmt.Errorf("error starting inbox reader: %w", err)
}
}
// broadcastServer must be started befopre sequencing any transactions
if n.BroadcastServer != nil {
err = n.BroadcastServer.Start(ctx)
if err != nil {
return fmt.Errorf("error starting feed broadcast server: %w", err)
}
}
if n.DelayedSequencer != nil && n.SeqCoordinator == nil {
err = n.DelayedSequencer.ForceSequenceDelayed(ctx)
if err != nil {
Expand Down Expand Up @@ -1114,12 +1121,6 @@ func (n *Node) Start(ctx context.Context) error {
if n.L1Reader != nil {
n.L1Reader.Start(ctx)
}
if n.BroadcastServer != nil {
err = n.BroadcastServer.Start(ctx)
if err != nil {
return fmt.Errorf("error starting feed broadcast server: %w", err)
}
}
if n.BroadcastClients != nil {
go func() {
if n.InboxReader != nil {
Expand Down

0 comments on commit e815395

Please sign in to comment.