From 9d6d1cb654ded8d2bacd38dc2f5b956fcf758952 Mon Sep 17 00:00:00 2001 From: Tan Chee Keong Date: Tue, 29 Apr 2025 15:33:18 +0800 Subject: [PATCH] Revise a bit --- validator_client/src/lib.rs | 2 +- validator_client/validator_services/src/sync.rs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/validator_client/src/lib.rs b/validator_client/src/lib.rs index 0367b8da82..c1a3217753 100644 --- a/validator_client/src/lib.rs +++ b/validator_client/src/lib.rs @@ -469,7 +469,7 @@ impl ProductionValidatorClient { } else { SelectionProofConfig { lookahead_slot: SELECTION_PROOF_SLOT_LOOKAHEAD, - computation_offset: Duration::from_secs(6), + computation_offset: slot_clock.slot_duration() / SELECTION_PROOF_SCHEDULE_DENOM, selections_endpoint: false, parallel_sign: false, } diff --git a/validator_client/validator_services/src/sync.rs b/validator_client/validator_services/src/sync.rs index a2ad36e0a6..15252f4d92 100644 --- a/validator_client/validator_services/src/sync.rs +++ b/validator_client/validator_services/src/sync.rs @@ -351,9 +351,6 @@ pub async fn poll_sync_committee_duties( let sub_duties_service = duties_service.clone(); duties_service.context.executor.spawn( async move { - // The defined config here defaults to using selections_endpoint and parallel_sign (i.e., distributed mode) - // Other DVT applications, e.g., Anchor can pass in different configs to suit different needs. - fill_in_aggregation_proofs( sub_duties_service, &new_pre_compute_duties,