Add committee len to AttesterDuties
This commit is contained in:
parent
dbcc88ad67
commit
ed6d0b46d0
@ -6,4 +6,5 @@ pub struct AttestationDuty {
|
||||
pub slot: Slot,
|
||||
pub shard: Shard,
|
||||
pub committee_index: usize,
|
||||
pub committee_len: usize,
|
||||
}
|
||||
|
@ -92,6 +92,7 @@ impl EpochCache {
|
||||
slot,
|
||||
shard,
|
||||
committee_index: k,
|
||||
committee_len: crosslink_committee.committee.len(),
|
||||
};
|
||||
attestation_duties[*validator_index] = Some(attestation_duty)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user