mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-04 18:14:30 +00:00
Update per-block processing for new AggPub wrapper
AggregatePublicKey newtype was introduced in previous commit
This commit is contained in:
parent
35ae1b6745
commit
3561d44cbe
@ -383,11 +383,7 @@ fn validate_attestation_signature_optional(
|
|||||||
);
|
);
|
||||||
let mut group_public_key = AggregatePublicKey::new();
|
let mut group_public_key = AggregatePublicKey::new();
|
||||||
for participant in participants {
|
for participant in participants {
|
||||||
group_public_key.add(
|
group_public_key.add(&state.validator_registry[participant as usize].pubkey)
|
||||||
state.validator_registry[participant as usize]
|
|
||||||
.pubkey
|
|
||||||
.as_raw(),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
ensure!(
|
ensure!(
|
||||||
attestation.verify_signature(
|
attestation.verify_signature(
|
||||||
|
Loading…
Reference in New Issue
Block a user