Add committee len to AttesterDuties

This commit is contained in:
Paul Hauner 2019-03-30 17:16:04 +11:00
parent dbcc88ad67
commit ed6d0b46d0
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6
2 changed files with 2 additions and 0 deletions

View File

@ -6,4 +6,5 @@ pub struct AttestationDuty {
pub slot: Slot,
pub shard: Shard,
pub committee_index: 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)
}