mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Fix
This commit is contained in:
@@ -526,11 +526,8 @@ pub async fn fill_in_aggregation_proofs<T: SlotClock + 'static, E: EthSpec>(
|
|||||||
if duties_service.distributed {
|
if duties_service.distributed {
|
||||||
let mut partial_proofs = Vec::new();
|
let mut partial_proofs = Vec::new();
|
||||||
|
|
||||||
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.
|
||||||
if slot < *validator_start_slot {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
let subnet_ids = match duty.subnet_ids::<E>() {
|
let subnet_ids = match duty.subnet_ids::<E>() {
|
||||||
Ok(subnet_ids) => subnet_ids,
|
Ok(subnet_ids) => subnet_ids,
|
||||||
@@ -558,7 +555,11 @@ pub async fn fill_in_aggregation_proofs<T: SlotClock + 'static, E: EthSpec>(
|
|||||||
// Produce partial selection proof
|
// Produce partial selection proof
|
||||||
let sync_selection_proof = duties_service
|
let sync_selection_proof = duties_service
|
||||||
.validator_store
|
.validator_store
|
||||||
.produce_sync_selection_proof(&duty.pubkey, slot, subnet_id.into())
|
.produce_sync_selection_proof(
|
||||||
|
&duty.pubkey,
|
||||||
|
proof_slot,
|
||||||
|
subnet_id.into(),
|
||||||
|
)
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
match sync_selection_proof {
|
match sync_selection_proof {
|
||||||
|
|||||||
Reference in New Issue
Block a user