Trigger primary BN readiness check when failover has issues #8193
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Description
Currently we wait
onAttestationAggregationDue
to trigger the readiness check for beacon nodes, which in turn trigger event streaming failing over/returning to primary. However, if there is a failover issue and there are no other failovers available, in some edge cases VC has to wait around a slot time before theonPrimaryNodeBackReady
callback is called and the failover to primary can happen.The edge case is
onAttestationAggregationDue
happens. Both primary and failover are in a bad state. We are still connected to a failover, so we try switching but nothing is available. In the meantime, primary has recovered. However, we still have to wait until the nextonAttestationAggregationDue
before reconnecting.Fixed Issue(s)
related to #8180
Documentation
doc-change-required
label to this PR if updates are required.Changelog