From c30f70906be1eaeb62d8374fc7d1b06af06fd109 Mon Sep 17 00:00:00 2001 From: realbigsean Date: Thu, 9 May 2024 17:49:12 -0400 Subject: [PATCH] fix ssz (#5755) --- consensus/types/src/attestation.rs | 2 +- consensus/types/src/eth_spec.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/consensus/types/src/attestation.rs b/consensus/types/src/attestation.rs index 6d5cb5bd1a..9dd4f1c924 100644 --- a/consensus/types/src/attestation.rs +++ b/consensus/types/src/attestation.rs @@ -67,9 +67,9 @@ pub struct Attestation { #[superstruct(only(Electra), partial_getter(rename = "aggregation_bits_electra"))] pub aggregation_bits: BitList, pub data: AttestationData, - pub signature: AggregateSignature, #[superstruct(only(Electra))] pub committee_bits: BitVector, + pub signature: AggregateSignature, } impl Decode for Attestation { diff --git a/consensus/types/src/eth_spec.rs b/consensus/types/src/eth_spec.rs index cec4db2da5..14949e6753 100644 --- a/consensus/types/src/eth_spec.rs +++ b/consensus/types/src/eth_spec.rs @@ -408,6 +408,8 @@ impl EthSpec for MainnetEthSpec { pub struct MinimalEthSpec; impl EthSpec for MinimalEthSpec { + type MaxCommitteesPerSlot = U4; + type MaxValidatorsPerSlot = U8192; type SlotsPerEpoch = U8; type EpochsPerEth1VotingPeriod = U4; type SlotsPerHistoricalRoot = U64; @@ -432,8 +434,6 @@ impl EthSpec for MinimalEthSpec { SubnetBitfieldLength, SyncCommitteeSubnetCount, MaxValidatorsPerCommittee, - MaxCommitteesPerSlot, - MaxValidatorsPerSlot, GenesisEpoch, HistoricalRootsLimit, ValidatorRegistryLimit,