diff --git a/validator_client/src/duties_service.rs b/validator_client/src/duties_service.rs index 3e15b39ab6..60b617e6c8 100644 --- a/validator_client/src/duties_service.rs +++ b/validator_client/src/duties_service.rs @@ -400,13 +400,23 @@ async fn poll_validator_indices( ) .await; + let fee_recipient = duties_service + .validator_store + .get_fee_recipient(&pubkey) + .map(|fr| fr.to_string()) + .unwrap_or_else(|| { + "Fee recipient for validator not set in validator_definitions.yml \ + or provided with the `--suggested-fee-recipient` flag" + .to_string() + }); match download_result { Ok(Some(response)) => { info!( log, "Validator exists in beacon chain"; "pubkey" => ?pubkey, - "validator_index" => response.data.index + "validator_index" => response.data.index, + "fee_recipient" => fee_recipient ); duties_service .validator_store @@ -420,7 +430,8 @@ async fn poll_validator_indices( debug!( log, "Validator without index"; - "pubkey" => ?pubkey + "pubkey" => ?pubkey, + "fee_recipient" => fee_recipient ) } // Don't exit early on an error, keep attempting to resolve other indices. @@ -430,6 +441,7 @@ async fn poll_validator_indices( "Failed to resolve pubkey to index"; "error" => %e, "pubkey" => ?pubkey, + "fee_recipient" => fee_recipient ) } }