From c8019caba64a5116935c888cfa72b1647dab51bb Mon Sep 17 00:00:00 2001 From: tim gretler Date: Fri, 18 Feb 2022 02:36:44 +0000 Subject: [PATCH] Fix sync committee polling for 0 validators (#2999) ## Issue Addressed #2953 ## Proposed Changes Adds empty local validator check. ## Additional Info Two other options: - add check inside `local_index` collection. Instead of after collection. - Move `local_index` collection to the beginning of the `poll_sync_committee_duties` function and combine sync committee with altair fork check. --- validator_client/src/duties_service/sync.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/validator_client/src/duties_service/sync.rs b/validator_client/src/duties_service/sync.rs index f61c600e9e..02f45ebc45 100644 --- a/validator_client/src/duties_service/sync.rs +++ b/validator_client/src/duties_service/sync.rs @@ -399,6 +399,16 @@ pub async fn poll_sync_committee_duties_for_period sync_committee_period, + ); + return Ok(()); + } + debug!( log, "Fetching sync committee duties";