File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ use bls::AggregateSignature;
55use context_deserialize:: context_deserialize;
66use educe:: Educe ;
77use serde:: { Deserialize , Serialize } ;
8- use ssz:: BitList ;
8+ use ssz:: BitVector ;
99use ssz_derive:: { Decode , Encode } ;
1010use test_random_derive:: TestRandom ;
1111use tree_hash_derive:: TreeHash ;
@@ -17,7 +17,7 @@ use tree_hash_derive::TreeHash;
1717#[ educe( PartialEq , Hash ) ]
1818#[ context_deserialize( ForkName ) ]
1919pub struct PayloadAttestation < E : EthSpec > {
20- pub aggregation_bits : BitList < E :: PTCSize > ,
20+ pub aggregation_bits : BitVector < E :: PTCSize > ,
2121 pub data : PayloadAttestationData ,
2222 pub signature : AggregateSignature ,
2323}
Original file line number Diff line number Diff line change @@ -14,8 +14,10 @@ pub type BuilderIndex = u64;
1414) ]
1515pub struct Builder {
1616 pub pubkey : PublicKeyBytes ,
17+ #[ serde( with = "serde_utils::quoted_u8" ) ]
1718 pub version : u8 ,
1819 pub execution_address : Address ,
20+ #[ serde( with = "serde_utils::quoted_u64" ) ]
1921 pub balance : u64 ,
2022 pub deposit_epoch : Epoch ,
2123 pub withdrawable_epoch : Epoch ,
Original file line number Diff line number Diff line change @@ -548,6 +548,7 @@ impl EthSpec for MinimalEthSpec {
548548 type NumberOfColumns = U128 ;
549549 type ProposerLookaheadSlots = U16 ; // Derived from (MIN_SEED_LOOKAHEAD + 1) * SLOTS_PER_EPOCH
550550 type BuilderPendingPaymentsLimit = U16 ; // 2 * SLOTS_PER_EPOCH = 2 * 8 = 16
551+ type PTCSize = U2 ;
551552
552553 params_from_eth_spec ! ( MainnetEthSpec {
553554 JustificationBitsLength ,
@@ -578,7 +579,6 @@ impl EthSpec for MinimalEthSpec {
578579 MaxAttestationsElectra ,
579580 MaxDepositRequestsPerPayload ,
580581 MaxWithdrawalRequestsPerPayload ,
581- PTCSize ,
582582 MaxPayloadAttestations ,
583583 BuilderRegistryLimit
584584 } ) ;
You can’t perform that action at this time.
0 commit comments