From 1535f40f53049d82a30efd86a5c8e51c3e801b5e Mon Sep 17 00:00:00 2001 From: Tan Chee Keong Date: Thu, 27 Mar 2025 10:44:22 +0800 Subject: [PATCH] Add back proof slot --- validator_client/validator_services/src/sync.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/validator_client/validator_services/src/sync.rs b/validator_client/validator_services/src/sync.rs index 7cd8902d49..2e1d311022 100644 --- a/validator_client/validator_services/src/sync.rs +++ b/validator_client/validator_services/src/sync.rs @@ -544,6 +544,9 @@ pub async fn fill_in_aggregation_proofs( } }; + // Construct proof for prior slot. + let proof_slot = slot - 1; + // Create futures for all subnet IDs for this validator for subnet_id in subnet_ids { let duties_service = duties_service.clone(); @@ -562,7 +565,7 @@ pub async fn fill_in_aggregation_proofs( Ok(proof) => { let sync_committee_selection = SyncCommitteeSelection { validator_index: duty.validator_index, - slot, + slot: proof_slot, subcommittee_index: subnet_id, selection_proof: proof.into(), }; @@ -573,7 +576,7 @@ pub async fn fill_in_aggregation_proofs( log, "Missing pubkey for sync selection proof"; "pubkey" => ?pubkey, - "slot" => slot, + "slot" => proof_slot, ); None } @@ -583,7 +586,7 @@ pub async fn fill_in_aggregation_proofs( "Unable to sign selection proof"; "error" => ?e, "pubkey" => ?duty.pubkey, - "slot" => slot, + "slot" => proof_slot, ); None }