Add committee_len to attestation data

This commit is contained in:
Age Manning
2019-03-30 17:20:33 +11:00
5 changed files with 14 additions and 11 deletions

View File

@@ -6,5 +6,5 @@ pub struct AttestationDuty {
pub slot: Slot,
pub shard: Shard,
pub committee_index: usize,
pub comittee_size: usize,
pub committee_len: usize,
}

View File

@@ -92,6 +92,7 @@ impl EpochCache {
slot,
shard,
committee_index: k,
committee_len: crosslink_committee.committee.len(),
};
attestation_duties[*validator_index] = Some(attestation_duty)
}