From ff9151636582f4480296870e666fde01d14610dc Mon Sep 17 00:00:00 2001 From: Shayan Eskandari Date: Sun, 1 Dec 2024 20:47:40 -0500 Subject: [PATCH] add initial graffiti to the validator initialization logs Note --- validator_client/initialized_validators/src/lib.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/validator_client/initialized_validators/src/lib.rs b/validator_client/initialized_validators/src/lib.rs index 0b36dbd62cf..f63fd893122 100644 --- a/validator_client/initialized_validators/src/lib.rs +++ b/validator_client/initialized_validators/src/lib.rs @@ -1065,7 +1065,6 @@ impl InitializedValidators { { val.gas_limit = Some(gas_limit); } - self.definitions .save(&self.validators_dir) .map_err(Error::UnableToSaveDefinitions)?; @@ -1285,6 +1284,7 @@ impl InitializedValidators { "Enabled validator"; "signing_method" => "local_keystore", "voting_pubkey" => format!("{:?}", def.voting_public_key), + "graffiti" => format!("{:?}", def.graffiti) ); if let Some(lockfile_path) = existing_lockfile_path { @@ -1304,7 +1304,8 @@ impl InitializedValidators { "Failed to initialize validator"; "error" => format!("{:?}", e), "signing_method" => "local_keystore", - "validator" => format!("{:?}", def.voting_public_key) + "validator" => format!("{:?}", def.voting_public_key), + "graffiti" => format!("{:?}", def.graffiti) ); // Exit on an invalid validator. @@ -1331,6 +1332,7 @@ impl InitializedValidators { "Enabled validator"; "signing_method" => "remote_signer", "voting_pubkey" => format!("{:?}", def.voting_public_key), + "graffiti" => format!("{:?}", def.graffiti) ); } Err(e) => { @@ -1339,7 +1341,8 @@ impl InitializedValidators { "Failed to initialize validator"; "error" => format!("{:?}", e), "signing_method" => "remote_signer", - "validator" => format!("{:?}", def.voting_public_key) + "validator" => format!("{:?}", def.voting_public_key), + "graffiti" => format!("{:?}", def.graffiti) ); // Exit on an invalid validator.