-
Notifications
You must be signed in to change notification settings - Fork 991
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
Feature : add a new cli 'wallet convert' command for coverting tendermnint key json file #2516
Feature : add a new cli 'wallet convert' command for coverting tendermnint key json file #2516
Conversation
…e with consesus key in wallet.toml
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.
This looks fine, thank you! (it just needs to be formatted to pass CI but we can be do that on merge)
* jeongseup/add-consensus-key-to-tendermint-key: changelog: add #2516 make fmt Add a new cli 'wallet convert' for coverting tendermnint key json file with consesus key in wallet.toml
* jeongseup/add-consensus-key-to-tendermint-key: changelog: add #2516 make fmt Add a new cli 'wallet convert' for coverting tendermnint key json file with consesus key in wallet.toml
crates/apps/src/lib/cli/wallet.rs
Outdated
let mut wallet = load_wallet(ctx); | ||
let sk = wallet.find_secret_key(&alias, None); | ||
let key: serde_json::Value = validator_key_to_json(&sk.unwrap()).unwrap(); | ||
let file_name = format!("priv_validator_key.json_{}", alias); |
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.
Is it intended that the file will looks like priv_validator_key.json_alias
rather than priv_validator_key_alias.json
or smth similar?
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.
Should I modify the code about that?
Just to share my experience with the "covert" command from this PR. so, did everything, and it works, I started to sign blocks with the new priv_validator_key created from the new consensus key
|
Adding as a separate comment, unjail is failing with the following after that, it looks like something is not processed and now I can't sign unjail command
Filed as #2640 |
Adding my experience using this as well here. Basically the |
@brentstone I modified saved file name format as you said. Please check a new commit
|
Describe your changes
I made a new cli command for namadw caused by #2515
How to use
By protocol parameter, the consensus key which connected at your validator will be changed to by this new key after a few epochs(pipeline length)
convert a key for generating
priv_validator_key.json
you can see priv_validator_key.json_ file
replace
cometbft/config/priv_validator_key.json
with ityou can check tendermint address with both a new
priv_validator_key.json
address andfind-validator
commandImprovement plan
I'm not sure. Other validators would want to use this feature. Please any comments for improvement validators UX
Indicate on which release or other PRs this topic is based on
Checklist before merging to
draft
Connected Issue