diff --git a/consensus/state_processing/src/per_block_processing/altair/sync_committee.rs b/consensus/state_processing/src/per_block_processing/altair/sync_committee.rs index 6176a92d67f..7c8714386c3 100644 --- a/consensus/state_processing/src/per_block_processing/altair/sync_committee.rs +++ b/consensus/state_processing/src/per_block_processing/altair/sync_committee.rs @@ -46,7 +46,7 @@ pub fn process_sync_aggregate( let pubkey_refs = participant_pubkeys.iter().collect::>(); if !aggregate - .sync_committee_message + .sync_committee_signature .eth2_fast_aggregate_verify(signing_root, &pubkey_refs) { return Err(SyncAggregateInvalid::SignatureInvalid.into()); diff --git a/consensus/types/src/sync_aggregate.rs b/consensus/types/src/sync_aggregate.rs index b17424eb2ab..d5ffaa0fd7d 100644 --- a/consensus/types/src/sync_aggregate.rs +++ b/consensus/types/src/sync_aggregate.rs @@ -24,7 +24,7 @@ impl From for Error { #[serde(bound = "T: EthSpec")] pub struct SyncAggregate { pub sync_committee_bits: BitVector, - pub sync_committee_message: AggregateSignature, + pub sync_committee_signature: AggregateSignature, } impl SyncAggregate { @@ -33,7 +33,7 @@ impl SyncAggregate { pub fn new() -> Self { Self { sync_committee_bits: BitVector::default(), - sync_committee_message: AggregateSignature::infinity(), + sync_committee_signature: AggregateSignature::infinity(), } } @@ -59,7 +59,7 @@ impl SyncAggregate { } } sync_aggregate - .sync_committee_message + .sync_committee_signature .add_assign_aggregate(&contribution.signature); } Ok(sync_aggregate) @@ -72,7 +72,7 @@ impl SyncAggregate { pub fn empty() -> Self { Self { sync_committee_bits: BitVector::default(), - sync_committee_message: AggregateSignature::empty(), + sync_committee_signature: AggregateSignature::empty(), } } }