Skip to content

Commit a947761

Browse files
committed
Bitfield size reduced by 8
1 parent 561dea5 commit a947761

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

consensus/types/src/attestation.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -601,12 +601,12 @@ mod tests {
601601
let attestation_data = size_of::<AttestationData>();
602602
let signature = size_of::<AggregateSignature>();
603603

604-
assert_eq!(aggregation_bits, 152);
604+
assert_eq!(aggregation_bits, 144);
605605
assert_eq!(attestation_data, 128);
606606
assert_eq!(signature, 288 + 16);
607607

608608
let attestation_expected = aggregation_bits + attestation_data + signature;
609-
assert_eq!(attestation_expected, 584);
609+
assert_eq!(attestation_expected, 576);
610610
assert_eq!(
611611
size_of::<AttestationBase<MainnetEthSpec>>(),
612612
attestation_expected
@@ -624,13 +624,13 @@ mod tests {
624624
size_of::<BitList<<MainnetEthSpec as EthSpec>::MaxCommitteesPerSlot>>();
625625
let signature = size_of::<AggregateSignature>();
626626

627-
assert_eq!(aggregation_bits, 152);
628-
assert_eq!(committee_bits, 152);
627+
assert_eq!(aggregation_bits, 144);
628+
assert_eq!(committee_bits, 144);
629629
assert_eq!(attestation_data, 128);
630630
assert_eq!(signature, 288 + 16);
631631

632632
let attestation_expected = aggregation_bits + committee_bits + attestation_data + signature;
633-
assert_eq!(attestation_expected, 736);
633+
assert_eq!(attestation_expected, 720);
634634
assert_eq!(
635635
size_of::<AttestationElectra<MainnetEthSpec>>(),
636636
attestation_expected

0 commit comments

Comments
 (0)