[Merge] Draft implementation of Optimistic sync with Execution Layer #4458
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
Based on top of #4456
Kind of quick fix to support the Optimistic syncing:
block.slot < currentSlot - 128
) as 'finalized' which need noexecutionPayload
andcheckOnTerminalPowBlockConditions
validationThe general idea of production implementation is to queue those validations while syncing, drop validations for blocks which become finalized, execute the remaining validations when the sync completes. Probably makes sense to update the head upon EL validations pass
Related Lighthouse PRs:
Related doc: https://notes.ethereum.org/@djrtwo/BJxKBaqNF
Good description here as well: sigp/lighthouse#2691
Fixed Issue(s)
Part of #4226
Documentation
documentation
label to this PR if updates are required.Changelog