updates per pr review

This commit is contained in:
shane-moore
2025-08-21 15:12:41 -04:00
committed by Mark Mackey
parent 5e562555b0
commit a695fa53b0
5 changed files with 5 additions and 4 deletions

View File

@@ -127,14 +127,11 @@ pub struct BeaconBlockBody<E: EthSpec, Payload: AbstractExecPayload<E> = FullPay
#[superstruct(only(Fulu), partial_getter(rename = "execution_payload_fulu"))]
#[serde(flatten)]
pub execution_payload: Payload::Fulu,
// execution_payload removed from Gloas, replaced with signed_execution_bid below
#[superstruct(only(Capella, Deneb, Electra, Fulu, Gloas))]
pub bls_to_execution_changes:
VariableList<SignedBlsToExecutionChange, E::MaxBlsToExecutionChanges>,
// blob_kzg_commitments removed from Gloas, moved to `ExecutionPayloadEnvelope`
#[superstruct(only(Deneb, Electra, Fulu))]
pub blob_kzg_commitments: KzgCommitments<E>,
// execution_requests removed from Gloas, moved to `ExecutionPayloadEnvelope`
#[superstruct(only(Electra, Fulu))]
pub execution_requests: ExecutionRequests<E>,
#[superstruct(only(Gloas))]

View File

@@ -2137,6 +2137,7 @@ impl<E: EthSpec> BeaconState<E> {
pub fn is_parent_block_full(&self) -> bool {
match self {
BeaconState::Base(_) | BeaconState::Altair(_) => false,
// TODO(EIP-7732): check the implications of this when we get to forkchoice modifications
BeaconState::Bellatrix(_)
| BeaconState::Capella(_)
| BeaconState::Deneb(_)

View File

@@ -3,6 +3,7 @@
// - ExecutionPayloadHeader
// - FullPayload
// - BlindedPayload
// TODO(EIP-7732): get rid of this whole file and panics once the engine_api is refactored for ePBS
#[macro_export]
macro_rules! map_execution_payload_into_full_payload {

View File

@@ -11,7 +11,8 @@ use tree_hash_derive::TreeHash;
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
#[derivative(PartialEq, Hash)]
#[context_deserialize(ForkName)]
// This is what Potuz' spec calls an `ExecutionPayload` even though it's clearly a bid.
// This is what Potuz' spec calls an `ExecutionPayloadHeader` even though it's clearly a bid.
// https://github.com/ethereum/consensus-specs/blob/bba2c7be148d6d921d2ca5e1cc528f5daaf456d9/specs/gloas/beacon-chain.md#executionpayloadheader
pub struct ExecutionBid {
pub parent_block_hash: ExecutionBlockHash,
pub parent_block_root: Hash256,

View File

@@ -12,6 +12,7 @@ use tree_hash_derive::TreeHash;
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
#[derivative(PartialEq, Hash)]
#[context_deserialize(ForkName)]
// https://github.com/ethereum/consensus-specs/blob/bba2c7be148d6d921d2ca5e1cc528f5daaf456d9/specs/gloas/beacon-chain.md#signedexecutionpayloadheader
pub struct SignedExecutionBid {
pub message: ExecutionBid,
pub signature: Signature,