Skip to content

Commit

Permalink
fix(bin): CL events match arms order
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Sep 18, 2023
1 parent b5905c4 commit 108166c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/reth/src/node/cl_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,17 @@ impl Stream for ConsensusLayerHealthEvents {
}
// Otherwise, continue with health checks based on Transition Configuration exchange
// and Fork Choice update.
(None, _) => Poll::Ready(Some(ConsensusLayerHealthEvent::NeverSeen)),
(None, None) => Poll::Ready(Some(ConsensusLayerHealthEvent::NeverSeen)),
(Some(_), None) => {
Poll::Ready(Some(ConsensusLayerHealthEvent::NeverReceivedUpdates))
}
(Some(transition_config), _)
if transition_config.elapsed() > NO_TRANSITION_CONFIG_EXCHANGED_PERIOD =>
{
Poll::Ready(Some(ConsensusLayerHealthEvent::HasNotBeenSeenForAWhile(
transition_config.elapsed(),
)))
}
(Some(_), None) => {
Poll::Ready(Some(ConsensusLayerHealthEvent::NeverReceivedUpdates))
}
(Some(_), Some(fork_choice))
if fork_choice.elapsed() > NO_FORKCHOICE_UPDATE_RECEIVED_PERIOD =>
{
Expand Down

0 comments on commit 108166c

Please sign in to comment.