Skip to content

Commit

Permalink
Fix SyncAggregate field name
Browse files Browse the repository at this point in the history
  • Loading branch information
realbigsean committed Jun 17, 2021
1 parent f32d14e commit f14c5e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub fn process_sync_aggregate<T: EthSpec>(

let pubkey_refs = participant_pubkeys.iter().collect::<Vec<_>>();
if !aggregate
.sync_committee_message
.sync_committee_signature
.eth2_fast_aggregate_verify(signing_root, &pubkey_refs)
{
return Err(SyncAggregateInvalid::SignatureInvalid.into());
Expand Down
8 changes: 4 additions & 4 deletions consensus/types/src/sync_aggregate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl From<ArithError> for Error {
#[serde(bound = "T: EthSpec")]
pub struct SyncAggregate<T: EthSpec> {
pub sync_committee_bits: BitVector<T::SyncCommitteeSize>,
pub sync_committee_message: AggregateSignature,
pub sync_committee_signature: AggregateSignature,
}

impl<T: EthSpec> SyncAggregate<T> {
Expand All @@ -33,7 +33,7 @@ impl<T: EthSpec> SyncAggregate<T> {
pub fn new() -> Self {
Self {
sync_committee_bits: BitVector::default(),
sync_committee_message: AggregateSignature::infinity(),
sync_committee_signature: AggregateSignature::infinity(),
}
}

Expand All @@ -59,7 +59,7 @@ impl<T: EthSpec> SyncAggregate<T> {
}
}
sync_aggregate
.sync_committee_message
.sync_committee_signature
.add_assign_aggregate(&contribution.signature);
}
Ok(sync_aggregate)
Expand All @@ -72,7 +72,7 @@ impl<T: EthSpec> SyncAggregate<T> {
pub fn empty() -> Self {
Self {
sync_committee_bits: BitVector::default(),
sync_committee_message: AggregateSignature::empty(),
sync_committee_signature: AggregateSignature::empty(),
}
}
}

0 comments on commit f14c5e5

Please sign in to comment.