Fix bug in attestation verification

We were ensuring that a validator was present on the aggregation
bitfield before adding their signature to the agg pub
This commit is contained in:
Paul Hauner
2019-03-09 20:09:17 +11:00
parent 62ab782ee2
commit 6250c81bb9
2 changed files with 47 additions and 27 deletions

View File

@@ -147,6 +147,8 @@ pub enum AttestationInvalid {
///
/// (attestation_data_shard, attestation_data_slot)
NoCommitteeForShard(u64, Slot),
/// The validator index was unknown.
UnknownValidator(u64),
/// The attestation signature verification failed.
BadSignature,
/// The shard block root was not set to zero. This is a phase 0 requirement.