From e26a3e04b387bf445a6b4119da77630f00ba7683 Mon Sep 17 00:00:00 2001 From: Lucas Saldanha Date: Mon, 12 Aug 2024 10:54:21 +1200 Subject: [PATCH] New execution payload global index --- pysetup/spec_builders/electra.py | 1 + specs/electra/light-client/sync-protocol.md | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/pysetup/spec_builders/electra.py b/pysetup/spec_builders/electra.py index ca02ee927..bc54b0cc0 100644 --- a/pysetup/spec_builders/electra.py +++ b/pysetup/spec_builders/electra.py @@ -18,4 +18,5 @@ from eth2spec.deneb import {preset_name} as deneb 'FINALIZED_ROOT_GINDEX_ELECTRA': 'GeneralizedIndex(169)', 'CURRENT_SYNC_COMMITTEE_GINDEX_ELECTRA': 'GeneralizedIndex(86)', 'NEXT_SYNC_COMMITTEE_GINDEX_ELECTRA': 'GeneralizedIndex(87)', + 'EXECUTION_PAYLOAD_GINDEX': 'GeneralizedIndex(50)', } diff --git a/specs/electra/light-client/sync-protocol.md b/specs/electra/light-client/sync-protocol.md index ef9dcd598..f304211b2 100644 --- a/specs/electra/light-client/sync-protocol.md +++ b/specs/electra/light-client/sync-protocol.md @@ -41,6 +41,10 @@ Additional documents describes the impact of the upgrade on certain roles: ## Constants +| Name | Value | +| - | - | +| `EXECUTION_PAYLOAD_GINDEX` | `get_generalized_index(BeaconBlockBody, 'execution_payload_envelope', 'execution_payload')` (= 50) | + ### Frozen constants Existing `GeneralizedIndex` constants are frozen at their [Altair](../../altair/light-client/sync-protocol.md#constants) values.