From e26004461ff20eac1379edd5ce9020c0f5e8f8d6 Mon Sep 17 00:00:00 2001 From: realbigsean Date: Mon, 8 Aug 2022 23:57:00 +0000 Subject: [PATCH] Don't attempt to register validators that are pre-activation (#3441) ## Issue Addressed https://github.com/sigp/lighthouse/issues/3440 ## Proposed Changes Don't consider pre-activation validators for validator registration. Co-authored-by: sean Co-authored-by: Michael Sproul --- validator_client/src/preparation_service.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/validator_client/src/preparation_service.rs b/validator_client/src/preparation_service.rs index b138d3e4ee..6dc8e7d56e 100644 --- a/validator_client/src/preparation_service.rs +++ b/validator_client/src/preparation_service.rs @@ -285,6 +285,9 @@ impl PreparationService { fn collect_validator_registration_keys(&self) -> Vec { self.collect_proposal_data(|pubkey, proposal_data| { + // Ignore fee recipients for keys without indices, they are inactive. + proposal_data.validator_index?; + // We don't log for missing fee recipients here because this will be logged more // frequently in `collect_preparation_data`. proposal_data.fee_recipient.and_then(|fee_recipient| {