Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix broken cli commands: wallet_create, wallet_list (issue #3447), diagnostics (issue #3452) and other CLI commands #3465

Merged

Conversation

dsiganos
Copy link
Contributor

The wallet_create and wallet_list CLI commands were broken. Probably many CLI commands were broken.
The problem was that inactive_node class only worked in dev network and inactive_node is used in a lot of CLI commands. In other words the CLI comamnds using inactive_node could not work in live, beta or test networks.

I fixed the diagnostics CLI command so that I could write a test script for the wallet commands.

I introduced the initialize CLI command to initialize the data folder, which was also need in order to write a test case for the wallet commands.

I introduced the CLI command debug_block_dump to print ledger blocks so that I can check that initialize commands works correctly for the different networks (live, beta, test).

@zhyatt , I introduces 2 new CLI commands "initialize" and debug_block_dump which we need to document.

…nocurrency#3447)

The node_wrapper was using dev network params instead of active network
params. This caused some CLI commands (at least --wallet_create and
wallet_list) to fail.

To fix the bug, for now, I created a local copy of network_params in
node_wrapper and initialise it with active_network.

However, it would be better to have a network_param reference passed down
so that we do not have multiple copies of network_params. I created an
issue for that improvement:
nanocurrency/nano-node-internalonly#73
Prints all ledger blocks to stdout in text form
The --initialize command initialises the data folder, if it is not already
initialised. It creates a ledger file and adds the genesis block.
@dsiganos dsiganos added bug cli Changes related to the Command Line Interface labels Sep 21, 2021
@zhyatt zhyatt added this to the V23.0 milestone Sep 21, 2021
@zhyatt zhyatt added the documentation This item indicates the need for or supplies updated or expanded documentation label Sep 21, 2021
@dsiganos dsiganos merged commit 61b3347 into nanocurrency:develop Sep 22, 2021
@dsiganos dsiganos deleted the fix_node_wrapper_network_params branch September 22, 2021 11:43
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug cli Changes related to the Command Line Interface documentation This item indicates the need for or supplies updated or expanded documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants