From 1877f09a82b1d2a272fa2367db173a1128befdfe Mon Sep 17 00:00:00 2001 From: Tan Chee Keong Date: Tue, 1 Apr 2025 20:59:51 +0800 Subject: [PATCH] Add comment --- validator_client/validator_services/src/sync.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/validator_client/validator_services/src/sync.rs b/validator_client/validator_services/src/sync.rs index ede80b7e79..a387bd65b0 100644 --- a/validator_client/validator_services/src/sync.rs +++ b/validator_client/validator_services/src/sync.rs @@ -527,7 +527,7 @@ pub async fn fill_in_aggregation_proofs( // Construct proof for prior slot. let proof_slot = slot - 1; - // Store all partial sync selection proofs in partial_proofs so that it can be sent together later + // Store all partial sync selection proofs so that it can be sent together later sync_committee_selection.extend(subnet_ids.iter().map(|&subnet_id| { let duties_service = duties_service.clone(); let duty = duty.clone(); @@ -586,6 +586,9 @@ pub async fn fill_in_aggregation_proofs( .flatten() .collect(); + // Call the endpoint /eth/v1/validator/sync_committee_selections + // by sending the SyncCommitteeSelection that contains partial sync selection proof + // The middleware should return SyncCommitteeSelection that contains full sync selection proof let middleware_response = duties_service .beacon_nodes .first_success(|beacon_node| {