Formatting

This commit is contained in:
Kirk Baird 2019-02-25 10:38:04 +11:00
parent f72b45147a
commit 4c3b0a6575
No known key found for this signature in database
GPG Key ID: BF864B7ED0BEA33F
2 changed files with 9 additions and 13 deletions

View File

@ -129,17 +129,13 @@ impl AttestationAggregator {
Some(validator_record) => validator_record, Some(validator_record) => validator_record,
}; };
if !free_attestation if !free_attestation.signature.verify(
.signature
.verify(
&signable_message, &signable_message,
cached_state.fork.get_domain( cached_state
cached_state.current_epoch(spec), .fork
spec.domain_attestation, .get_domain(cached_state.current_epoch(spec), spec.domain_attestation),
),
&validator_record.pubkey, &validator_record.pubkey,
) ) {
{
invalid_outcome!(Message::BadSignature); invalid_outcome!(Message::BadSignature);
} }

View File

@ -2,8 +2,8 @@ use self::epoch_cache::EpochCache;
use crate::test_utils::TestRandom; use crate::test_utils::TestRandom;
use crate::{ use crate::{
validator::StatusFlags, validator_registry::get_active_validator_indices, AttestationData, validator::StatusFlags, validator_registry::get_active_validator_indices, AttestationData,
Bitfield, ChainSpec, Crosslink, Deposit, DepositData, DepositInput, Epoch, Eth1Data, Eth1DataVote, Fork, Bitfield, ChainSpec, Crosslink, Deposit, DepositData, DepositInput, Epoch, Eth1Data,
Hash256, PendingAttestation, PublicKey, Signature, Slot, Validator, Eth1DataVote, Fork, Hash256, PendingAttestation, PublicKey, Signature, Slot, Validator,
}; };
use bls::verify_proof_of_possession; use bls::verify_proof_of_possession;
use honey_badger_split::SplitExt; use honey_badger_split::SplitExt;