-
Notifications
You must be signed in to change notification settings - Fork 978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ledger: check pk in pre-genesis setup #1140
Conversation
apps/src/lib/client/utils.rs
Outdated
&tendermint_node_key.ref_to(), | ||
&genesis_config, | ||
) { | ||
println!( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
println!( | |
eprintln!( |
apps/src/lib/client/utils.rs
Outdated
@@ -1058,3 +1070,16 @@ pub fn validator_pre_genesis_file(pre_genesis_path: &Path) -> PathBuf { | |||
pub fn validator_pre_genesis_dir(base_dir: &Path, alias: &str) -> PathBuf { | |||
base_dir.join(PRE_GENESIS_DIR).join(alias) | |||
} | |||
|
|||
fn is_valid_validator_for_current_chain( | |||
validator_pk: &common::PublicKey, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
validator_pk: &common::PublicKey, | |
tendermint_node_pk: &common::PublicKey, |
apps/src/lib/client/utils.rs
Outdated
) -> 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()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tm_node_key.0.eq(&validator_pk.to_string()) | |
tm_node_key.0.eq(&tendermint_node_pk.to_string()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, thx!
Addressing #1091