mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-29 19:04:27 +00:00
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:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user