Skip to content

Commit

Permalink
Forward health check from sequencer if applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower authored and hkalodner committed Aug 4, 2022
1 parent 6d2e94f commit 2e26395
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arbnode/sequencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ func (s *Sequencer) postTxFilter(state *arbosState.ArbosState, tx *types.Transac
}

func (s *Sequencer) CheckHealth(ctx context.Context) error {
s.forwarderMutex.Lock()
forwarder := s.forwarder
s.forwarderMutex.Unlock()
if forwarder != nil {
return forwarder.CheckHealth(ctx)
}

if s.txStreamer.coordinator != nil && !s.txStreamer.coordinator.CurrentlyChosen() {
return ErrNoSequencer
}
Expand Down

0 comments on commit 2e26395

Please sign in to comment.