mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-16 12:28:24 +00:00
Remove current slot
This commit is contained in:
@@ -520,15 +520,8 @@ pub async fn fill_in_aggregation_proofs<T: SlotClock + 'static, E: EthSpec>(
|
|||||||
"pre_compute_slot" => pre_compute_slot
|
"pre_compute_slot" => pre_compute_slot
|
||||||
);
|
);
|
||||||
|
|
||||||
let slots_to_process = if duties_service.distributed {
|
|
||||||
vec![current_slot]
|
|
||||||
} else {
|
|
||||||
(current_slot.as_u64()..=pre_compute_slot.as_u64())
|
|
||||||
.map(Slot::new)
|
|
||||||
.collect::<Vec<_>>()
|
|
||||||
};
|
|
||||||
// Generate selection proofs for each validator at each slot, one slot at a time.
|
// Generate selection proofs for each validator at each slot, one slot at a time.
|
||||||
for slot in slots_to_process {
|
for slot in (current_slot.as_u64()..=pre_compute_slot.as_u64()).map(Slot::new) {
|
||||||
let mut validator_proofs = vec![];
|
let mut validator_proofs = vec![];
|
||||||
for (validator_start_slot, duty) in pre_compute_duties {
|
for (validator_start_slot, duty) in pre_compute_duties {
|
||||||
// Proofs are already known at this slot for this validator.
|
// Proofs are already known at this slot for this validator.
|
||||||
|
|||||||
Reference in New Issue
Block a user