Formatting
This commit is contained in:
parent
f72b45147a
commit
4c3b0a6575
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user