Skip to content

fix: subscribe to execution_payload instead of execution_payload_available - #253

Merged
barnabasbusa merged 2 commits into
ethpandaops:masterfrom
lodekeeper:fix/load-payload-after-import
Nov 27, 2026
Merged

barnabasbusa merged 2 commits into
ethpandaops:masterfrom
lodekeeper:fix/load-payload-after-import

Conversation

@lodekeeper

@lodekeeper lodekeeper commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

On gloas, check_consensus_block_proposals can't get the execution payload envelope of any block from Lodestar nodes. Every payload based check then fails with

could not fetch payload for gloas block 33 [0xeea3cb72...]

and the transaction and blob tests time out. In the kurtosis run on ChainSafe/lodestar#10810 (two Lodestar nodes, gloas and heze), this happened for all 155 blocks from slot 33 to 322. The chain was fine and transactions were being included.

Assertoor fetches the envelope from /eth/v1/beacon/execution_payload_envelopes/{root} when it gets an execution_payload_available event (and once when it processes the block). A 404 counts as "no payload" and nothing retries. Per the beacon API, execution_payload_available means the payload and blobs are available for payload attestation, while execution_payload means fork choice has imported the envelope. Lodestar sends execution_payload_available at the start of the import and answers the envelope endpoint with 404 until fork choice has the block's full node, so the fetch on execution_payload_available always misses. execution_payload was only added to the beacon API in ethereum/beacon-APIs#588, after assertoor started using execution_payload_available.

  • subscribe to execution_payload instead of execution_payload_available and decode it as v1.ExecutionPayloadEvent

go test ./..., go vet ./..., gofmt -s, staticcheck ./... and golangci-lint v2.11.3 pass. The new test feeds the beacon API example execution_payload event through the stream handler.

`execution_payload_available` is sent when the payload is available for
payload attestation, which can be before the envelope is imported. A
Lodestar node answers the envelope request with a 404 until the import
is done, and assertoor does not retry, so payload based block checks
never see a payload.

Also subscribe to `execution_payload`, sent after the import, on its own
stream so nodes without that topic still deliver
`execution_payload_available`.

🤖 Generated with AI assistance
…lable

`execution_payload` is sent after the envelope is imported, so the
envelope can be fetched right away. Drop `execution_payload_available`,
which assertoor picked before `execution_payload` was in the beacon API
and which can arrive before the envelope is served.

🤖 Generated with AI assistance
@lodekeeper lodekeeper changed the title fix: load gloas payload envelopes on the execution_payload event fix: subscribe to execution_payload instead of execution_payload_available Nov 27, 2026
@barnabasbusa
barnabasbusa merged commit ec8f447 into ethpandaops:master Nov 27, 2026
6 checks passed
nflaig pushed a commit to ChainSafe/lodestar that referenced this pull request Nov 27, 2026
## Motivation

No nightly takes Lodestar through the gloas and heze fork transitions.
The builder smoke test starts on gloas at genesis and the consensus
client interop runs fulu only.

## Description

Add a second entry to the nightly Kurtosis sim test matrix: two Lodestar
nodes built from the commit on `ethpandaops/nethermind:master`, fulu at
genesis, gloas at epoch 1 and heze at epoch 2, with the assertoor
stability, block proposal, transaction and blob transaction checks. The
existing Lodestar + Lighthouse entry is unchanged, and each entry gets
its own enclave name so the dump artifacts don't collide.

nethermind master supports the heze EL fork: in an engine API interop
run with a heze scenario
([run](https://github.com/ChainSafe/lodestar/actions/runs/45883843008))
reth and nethermind main went through gloas and heze to finality, while
geth, besu, erigon, nimbus-eth1 and ethrex main don't implement the
FOCIL engine methods yet.

Needs assertoor master with ethpandaops/assertoor#252 (heze containers
in go-eth2-client) and ethpandaops/assertoor#253 (fetch gloas payload
envelopes on the `execution_payload` event), both merged on 2026-11-27.
With them the new entry passed all four assertoor tests in [this
run](https://github.com/ChainSafe/lodestar/actions/runs/45900628311)
(assertoor `git-ec8f447`). The temporary `pull_request` trigger used for
that run is reverted.

> This PR was written with AI assistance.

---------

Co-authored-by: lodekeeper <lodekeeper@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants