Skip to content

Commit

Permalink
Ensure sequencer backlog is populated before any clients connect
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower committed Dec 15, 2023
1 parent 3f4e3e3 commit ba66b82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arbnode/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -773,9 +773,9 @@ func (n *Node) Start(ctx context.Context) error {
return fmt.Errorf("error initializing feed broadcast server: %w", err)
}
}
if n.InboxTracker != nil && n.BroadcastServer != nil && config.Sequencer && !config.SeqCoordinator.Enable {
// Normally, the sequencer would populate the feed backlog when it acquires the lockout.
// However, if the sequencer coordinator is not enabled, we must populate the backlog on startup.
if n.InboxTracker != nil && n.BroadcastServer != nil && config.Sequencer {
// Even if the sequencer coordinator will populate this backlog,
// we want to make sure it's populated before any clients connect.
err = n.InboxTracker.PopulateFeedBacklog(n.BroadcastServer)
if err != nil {
return fmt.Errorf("error populating feed backlog on startup: %w", err)
Expand Down

0 comments on commit ba66b82

Please sign in to comment.