Merge branch 'electra_attestation_changes' of https://github.com/sigp/lighthouse into block-processing-electra

This commit is contained in:
realbigsean
2024-05-08 12:48:09 -04:00
33 changed files with 844 additions and 317 deletions

View File

@@ -3285,6 +3285,7 @@ impl ApiTester {
.unwrap()
.data;
// TODO(electra) make fork-agnostic
let mut attestation = Attestation::Base(AttestationBase {
aggregation_bits: BitList::with_capacity(duty.committee_length as usize).unwrap(),
data: attestation_data,
@@ -3303,7 +3304,7 @@ impl ApiTester {
SignedAggregateAndProof::from_aggregate(
i as u64,
attestation,
attestation.to_ref(),
Some(proof),
&kp.sk,
&fork,