Skip to content

Commit

Permalink
Merge pull request #3811 from anoma/fraccaman/improve-moniker
Browse files Browse the repository at this point in the history
try to strip namada version from moniker
  • Loading branch information
mergify[bot] committed Sep 13, 2024
2 parents ac6b501 + d713525 commit c6ec091
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crates/node/src/tendermint_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,13 @@ async fn update_tendermint_config(
home_dir: impl AsRef<Path>,
mut config: TendermintConfig,
) -> Result<()> {
let path = configuration(home_dir);

let path: PathBuf = configuration(home_dir);
let actual_moniker = config.moniker.to_string();
let actual_moniker = actual_moniker
.strip_suffix(namada_version())
.unwrap_or(&actual_moniker);
config.moniker =
Moniker::from_str(&format!("{}-{}", config.moniker, namada_version()))
Moniker::from_str(&format!("{}-{}", actual_moniker, namada_version()))
.expect("Invalid moniker");

config.consensus.create_empty_blocks = true;
Expand Down

0 comments on commit c6ec091

Please sign in to comment.