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,
};
if !free_attestation
.signature
.verify(
&signable_message,
cached_state.fork.get_domain(
cached_state.current_epoch(spec),
spec.domain_attestation,
),
&validator_record.pubkey,
)
{
if !free_attestation.signature.verify(
&signable_message,
cached_state
.fork
.get_domain(cached_state.current_epoch(spec), spec.domain_attestation),
&validator_record.pubkey,
) {
invalid_outcome!(Message::BadSignature);
}

View File

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