Skip to content

Gloas support (ePBS)#484

Draft
pk910 wants to merge 70 commits intomasterfrom
gloas-support
Draft

Gloas support (ePBS)#484
pk910 wants to merge 70 commits intomasterfrom
gloas-support

Conversation

@pk910
Copy link
Member

@pk910 pk910 commented Sep 22, 2025

docker image: ethpandaops/dora:gloas-support
specs version: v1.7.0-alpha.2
specs path: specs/gloas

based on #227

pk910 and others added 30 commits January 27, 2025 20:52
pk910 and others added 25 commits January 15, 2026 22:10
fix: update based on latest gloas spec
# Conflicts:
#	indexer/beacon/block.go
#	services/chainservice_blocks.go
…cess

This change modifies how blocks are processed in the beacon client.
It checks the chain state for EIP-7737 enablement based on the block slot's epoch
to determine whether to load the execution payload when processing a block from the
stream.

Additionally, it updates `GetSlotDetailsByBlockroot` and `GetSlotDetailsBySlot`
to include the payload in the response if it exists, further integrating
payload handling into block detail retrieval.
…2 check in processStreamBlock

Removes the logic to determine if EIP-7732 payload loading is needed when processing a block from the head event stream because blocks received via head events are assumed to not require immediate execution payload processing for caching purposes initially.

Updates `processExecutionPayloadAvailableEvent` to use `createOrGetBlock` when a block is not found in the cache during an execution payload availability event, ensuring the block object exists before proceeding.
…nto a single stream dispatcher

Remove separate `blockDispatcher` and `headDispatcher` in `consensus.Client`.

Introduce a unified `streamDispatcher` of type `utils.Dispatcher[*rpc.BeaconStreamEvent]` to handle both block and head events.

Update `Client` methods (`SubscribeBlockEvent`, `SubscribeHeadEvent`) to remove them and introduce `SubscribeStreamEvent`.

Update `runClientLogic` to fire block and head events through the new `streamDispatcher` to guarantee SSE ordering preservation on the consumer side.

Update `indexer/beacon/Client` to use the new `streamSubscription` instead of separate block and head subscriptions, simplifying event handling in `runClientLoop` by processing a unified stream event type that maintains ordering.

This change simplifies the event handling mechanism in the consensus client, ensuring that block and head events originating from the RPC stream are processed in the correct order as delivered by the RPC endpoint.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-docker-image Automatically build docker image for PR branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments