Fork choice on_execution_payload
skeleton
#10049
Open
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
Simple implementation (more of a skeleton) for
fork_choice#on_execution_payload
. Also created a newForkChoicePayloadExecutorGloas
which is catered for Gloas.Fixed Issue(s)
related to #9878
Documentation
doc-change-required
label to this PR if updates are required.Changelog
Note
Adds fork choice handling for Gloas execution payload envelopes, updates executor API to use Optional header, and introduces debug/P2P logging plus related helpers and tests.
onExecutionPayload
for Gloas: retrieves state viaSlotAndBlockRoot
, validates/processes envelope, runs EL viaForkChoicePayloadExecutorGloas
, (NOOP) DA check, applies to store viaForkChoiceUtil.applyExecutionPayloadToStore
, and returns detailedExecutionPayloadImportResult
.reportInvalidExecutionPayload
).ForkChoicePayloadExecutorGloas
to executeengine_newPayload
for envelopes; tests added.OptimisticExecutionPayloadExecutor#optimisticallyExecute
to acceptOptional<ExecutionPayloadHeader>
; update Bellatrix processor andForkChoicePayloadExecutor
+ tests.ExecutionPayloadImportResult
with new failure reasons and factory methods.SignedExecutionPayloadEnvelope
addsgetSlot()
andgetSlotAndBlockRoot()
.applyExecutionPayloadToStore
hook (no-op for now) and Gloas-specific util wiring.DebugDataDumper
andDebugDataFileDumper
support saving invalid execution payloads (newinvalid_execution_payloads
dir) and refine data column sidecar saving.P2PLogger
addsonInvalidExecutionPayload
.Optional
executor API inAvailabilityChecker
.Written by Cursor Bugbot for commit 1b06696. This will update automatically on new commits. Configure here.