-
Notifications
You must be signed in to change notification settings - Fork 795
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
confirmation_height_clear cli account param #3836
confirmation_height_clear cli account param #3836
Conversation
Sent a fix to the line I mentioned earlier, there is also the |
@dsiganos , could you double check and get this merged if you approve? |
nano/node/cli.cpp
Outdated
auto transaction (node.node->store.tx_begin_write ()); | ||
reset_confirmation_heights (transaction, node.node->network_params.ledger, node.node->store); | ||
std::cout << "Confirmation heights of all accounts (except genesis which is set to 1) are set to 0" << std::endl; | ||
std::cerr << "confirmation_height_clear command requires one <account> option\n"; |
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.
It could also say: "or 'any' to clear all accounts.
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.
Improved this and also the help message to the --confirmation_height_clear
option.
- Improve the error message to say the account can be 'all' - Improve the confirmation_height_clear help message to inform the value 'all' can be passed to clear all accounts
Thanks @JerzyStanislawski ! |
* confirmation_height_clear cli account param * Add back missing password option * Improve the error/help messages to the required account option - Improve the error message to say the account can be 'all' - Improve the confirmation_height_clear help message to inform the value 'all' can be passed to clear all accounts Co-authored-by: Thiago Silva <[email protected]>
Make account argument required for confirmation_height_clear cli command.
Issue reference: #3831
resolves #3831