Skip to content

Commit

Permalink
fix: review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Gianmarco Fraccaroli committed Feb 22, 2023
1 parent 1c7201f commit 8ba6651
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/src/lib/client/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ pub async fn join_network(
&tendermint_node_key.ref_to(),
&genesis_config,
) {
println!(
eprintln!(
"The current validator is not valid for chain {}.",
chain_id.as_str()
);
Expand Down Expand Up @@ -1072,12 +1072,12 @@ pub fn validator_pre_genesis_dir(base_dir: &Path, alias: &str) -> PathBuf {
}

fn is_valid_validator_for_current_chain(
validator_pk: &common::PublicKey,
tendermint_node_pk: &common::PublicKey,
genesis_config: &GenesisConfig,
) -> bool {
genesis_config.validator.iter().any(|(_alias, config)| {
if let Some(tm_node_key) = &config.tendermint_node_key {
tm_node_key.0.eq(&validator_pk.to_string())
tm_node_key.0.eq(&tendermint_node_pk.to_string())
} else {
false
}
Expand Down

0 comments on commit 8ba6651

Please sign in to comment.