Skip to content

Commit

Permalink
try to strip namada version from moniker
Browse files Browse the repository at this point in the history
  • Loading branch information
Fraccaman committed Sep 12, 2024
1 parent b0b41dc commit d713525
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 d713525

Please sign in to comment.