This commit is contained in:
Eitan Seri-Levi
2026-04-29 17:22:13 +02:00
parent a742110901
commit a3c91f6ecb
20 changed files with 54 additions and 61 deletions

View File

@@ -397,8 +397,8 @@ pub fn get_heze_find_head_vote_transition_test_definition() -> ForkChoiceTestDef
}
/// CL attestation weight overrides payload preference tiebreaker.
pub fn get_heze_weight_priority_over_payload_preference_test_definition()
-> ForkChoiceTestDefinition {
pub fn get_heze_weight_priority_over_payload_preference_test_definition() -> ForkChoiceTestDefinition
{
let mut ops = vec![];
// Build two branches where one child extends payload (Full) and the other doesn't (Empty).

View File

@@ -1,7 +1,5 @@
use std::mem;
use types::{
BeaconState, BeaconStateError as Error, BeaconStateHeze, ChainSpec, EthSpec, Fork,
};
use types::{BeaconState, BeaconStateError as Error, BeaconStateHeze, ChainSpec, EthSpec, Fork};
/// Transform a `Gloas` state into a `Heze` state.
pub fn upgrade_to_heze<E: EthSpec>(

View File

@@ -21,8 +21,7 @@ use crate::{
BeaconBlockBodyAltair, BeaconBlockBodyBase, BeaconBlockBodyBellatrix,
BeaconBlockBodyCapella, BeaconBlockBodyDeneb, BeaconBlockBodyElectra, BeaconBlockBodyFulu,
BeaconBlockBodyGloas, BeaconBlockBodyHeze, BeaconBlockBodyRef, BeaconBlockBodyRefMut,
BeaconBlockHeader,
SignedBeaconBlock, SignedBeaconBlockHeader,
BeaconBlockHeader, SignedBeaconBlock, SignedBeaconBlockHeader,
},
core::{ChainSpec, Domain, Epoch, EthSpec, Graffiti, Hash256, SignedRoot, Slot},
deposit::{Deposit, DepositData},

View File

@@ -13,16 +13,14 @@ pub use beacon_block_body::{
BLOB_KZG_COMMITMENTS_INDEX, BeaconBlockBody, BeaconBlockBodyAltair, BeaconBlockBodyBase,
BeaconBlockBodyBellatrix, BeaconBlockBodyCapella, BeaconBlockBodyDeneb, BeaconBlockBodyElectra,
BeaconBlockBodyFulu, BeaconBlockBodyGloas, BeaconBlockBodyHeze, BeaconBlockBodyRef,
BeaconBlockBodyRefMut,
NUM_BEACON_BLOCK_BODY_HASH_TREE_ROOT_LEAVES,
BeaconBlockBodyRefMut, NUM_BEACON_BLOCK_BODY_HASH_TREE_ROOT_LEAVES,
};
pub use beacon_block_header::BeaconBlockHeader;
pub use signed_beacon_block::{
SignedBeaconBlock, SignedBeaconBlockAltair, SignedBeaconBlockBase, SignedBeaconBlockBellatrix,
SignedBeaconBlockCapella, SignedBeaconBlockDeneb, SignedBeaconBlockElectra,
SignedBeaconBlockFulu, SignedBeaconBlockGloas, SignedBeaconBlockHeze, SignedBeaconBlockHash,
SignedBlindedBeaconBlock,
ssz_tagged_signed_beacon_block, ssz_tagged_signed_beacon_block_arc,
SignedBeaconBlockFulu, SignedBeaconBlockGloas, SignedBeaconBlockHash, SignedBeaconBlockHeze,
SignedBlindedBeaconBlock, ssz_tagged_signed_beacon_block, ssz_tagged_signed_beacon_block_arc,
};
pub use signed_beacon_block_header::SignedBeaconBlockHeader;

View File

@@ -19,9 +19,8 @@ use crate::{
BLOB_KZG_COMMITMENTS_INDEX, BeaconBlock, BeaconBlockAltair, BeaconBlockBase,
BeaconBlockBellatrix, BeaconBlockBodyBellatrix, BeaconBlockBodyCapella,
BeaconBlockBodyDeneb, BeaconBlockBodyElectra, BeaconBlockBodyFulu, BeaconBlockCapella,
BeaconBlockDeneb, BeaconBlockElectra, BeaconBlockFulu, BeaconBlockGloas, BeaconBlockHeze,
BeaconBlockHeader,
BeaconBlockRef, BeaconBlockRefMut, SignedBeaconBlockHeader,
BeaconBlockDeneb, BeaconBlockElectra, BeaconBlockFulu, BeaconBlockGloas, BeaconBlockHeader,
BeaconBlockHeze, BeaconBlockRef, BeaconBlockRefMut, SignedBeaconBlockHeader,
},
core::{ChainSpec, Domain, Epoch, EthSpec, Hash256, SignedRoot, SigningData, Slot},
execution::{

View File

@@ -140,7 +140,9 @@ impl<E: EthSpec> LightClientBootstrap<E> {
ForkName::Electra => <LightClientBootstrapElectra<E> as Encode>::ssz_fixed_len(),
ForkName::Fulu => <LightClientBootstrapFulu<E> as Encode>::ssz_fixed_len(),
// TODO(gloas): implement Gloas light client
ForkName::Gloas | ForkName::Heze => <LightClientBootstrapAltair<E> as Encode>::ssz_fixed_len(),
ForkName::Gloas | ForkName::Heze => {
<LightClientBootstrapAltair<E> as Encode>::ssz_fixed_len()
}
};
fixed_len + LightClientHeader::<E>::ssz_max_var_len_for_fork(fork_name)
}

View File

@@ -153,10 +153,7 @@ impl<E: EthSpec> LightClientHeader<E> {
}
pub fn ssz_max_var_len_for_fork(fork_name: ForkName) -> usize {
if fork_name.heze_enabled() {
// TODO(EIP7732): check this
0
} else if fork_name.gloas_enabled() {
if fork_name.gloas_enabled() || fork_name.heze_enabled() {
// TODO(EIP7732): check this
0
} else if fork_name.capella_enabled() {

View File

@@ -17,8 +17,8 @@ pub use balance::Balance;
pub use beacon_state::{
BeaconState, BeaconStateAltair, BeaconStateBase, BeaconStateBellatrix, BeaconStateCapella,
BeaconStateDeneb, BeaconStateElectra, BeaconStateError, BeaconStateFulu, BeaconStateGloas,
BeaconStateHash, BeaconStateHeze, BeaconStateRef, CACHED_EPOCHS,
DEFAULT_PRE_ELECTRA_WS_PERIOD, Validators,
BeaconStateHash, BeaconStateHeze, BeaconStateRef, CACHED_EPOCHS, DEFAULT_PRE_ELECTRA_WS_PERIOD,
Validators,
};
pub use committee_cache::{
CommitteeCache, compute_committee_index_in_epoch, compute_committee_range_in_epoch,