Append client version info to user graffiti by default (#9313)

Closes issue #9287


  


Co-Authored-By: Tan Chee Keong <tanck@sigmaprime.io>

Co-Authored-By: chonghe <44791194+chong-he@users.noreply.github.com>

Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
chonghe
2026-06-15 14:03:13 +08:00
committed by GitHub
parent 378f01670b
commit d8e406b6ac
10 changed files with 203 additions and 41 deletions

View File

@@ -152,13 +152,14 @@ pub struct ValidatorClient {
#[clap(
long,
requires = "graffiti",
help = "When used, client version info will be prepended to user custom graffiti, with a space in between. \
This should only be used with a Lighthouse beacon node.",
num_args = 0..=1,
help = "Client version info will be appended to user custom graffiti, with a space in between. \
This should only be set to false when using a Lighthouse beacon node.",
display_order = 0,
default_value = "true",
help_heading = FLAG_HEADER
)]
pub graffiti_append: bool,
pub graffiti_append: Option<bool>,
#[clap(
long,

View File

@@ -239,7 +239,7 @@ impl Config {
}
}
config.graffiti_policy = if validator_client_config.graffiti_append {
config.graffiti_policy = if validator_client_config.graffiti_append.unwrap_or(true) {
Some(GraffitiPolicy::AppendClientVersions)
} else {
Some(GraffitiPolicy::PreserveUserGraffiti)