From 3561d44cbe38b13b5faa485aa38c706df71c38cd Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Sun, 3 Mar 2019 11:12:18 +1100 Subject: [PATCH] Update per-block processing for new AggPub wrapper AggregatePublicKey newtype was introduced in previous commit --- eth2/state_processing/src/block_processable.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/eth2/state_processing/src/block_processable.rs b/eth2/state_processing/src/block_processable.rs index 4083d17d8..e434b0c83 100644 --- a/eth2/state_processing/src/block_processable.rs +++ b/eth2/state_processing/src/block_processable.rs @@ -383,11 +383,7 @@ fn validate_attestation_signature_optional( ); let mut group_public_key = AggregatePublicKey::new(); for participant in participants { - group_public_key.add( - state.validator_registry[participant as usize] - .pubkey - .as_raw(), - ) + group_public_key.add(&state.validator_registry[participant as usize].pubkey) } ensure!( attestation.verify_signature(