This commit is contained in:
realbigsean
2024-05-09 17:49:12 -04:00
committed by GitHub
parent cb8c8f59cf
commit c30f70906b
2 changed files with 3 additions and 3 deletions

View File

@@ -67,9 +67,9 @@ pub struct Attestation<E: EthSpec> {
#[superstruct(only(Electra), partial_getter(rename = "aggregation_bits_electra"))] #[superstruct(only(Electra), partial_getter(rename = "aggregation_bits_electra"))]
pub aggregation_bits: BitList<E::MaxValidatorsPerSlot>, pub aggregation_bits: BitList<E::MaxValidatorsPerSlot>,
pub data: AttestationData, pub data: AttestationData,
pub signature: AggregateSignature,
#[superstruct(only(Electra))] #[superstruct(only(Electra))]
pub committee_bits: BitVector<E::MaxCommitteesPerSlot>, pub committee_bits: BitVector<E::MaxCommitteesPerSlot>,
pub signature: AggregateSignature,
} }
impl<E: EthSpec> Decode for Attestation<E> { impl<E: EthSpec> Decode for Attestation<E> {

View File

@@ -408,6 +408,8 @@ impl EthSpec for MainnetEthSpec {
pub struct MinimalEthSpec; pub struct MinimalEthSpec;
impl EthSpec for MinimalEthSpec { impl EthSpec for MinimalEthSpec {
type MaxCommitteesPerSlot = U4;
type MaxValidatorsPerSlot = U8192;
type SlotsPerEpoch = U8; type SlotsPerEpoch = U8;
type EpochsPerEth1VotingPeriod = U4; type EpochsPerEth1VotingPeriod = U4;
type SlotsPerHistoricalRoot = U64; type SlotsPerHistoricalRoot = U64;
@@ -432,8 +434,6 @@ impl EthSpec for MinimalEthSpec {
SubnetBitfieldLength, SubnetBitfieldLength,
SyncCommitteeSubnetCount, SyncCommitteeSubnetCount,
MaxValidatorsPerCommittee, MaxValidatorsPerCommittee,
MaxCommitteesPerSlot,
MaxValidatorsPerSlot,
GenesisEpoch, GenesisEpoch,
HistoricalRootsLimit, HistoricalRootsLimit,
ValidatorRegistryLimit, ValidatorRegistryLimit,