Skip to content
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

Modify btcctl to accept --testnet and --wallet flags #112

Closed
davecgh opened this issue Mar 19, 2014 · 0 comments
Closed

Modify btcctl to accept --testnet and --wallet flags #112

davecgh opened this issue Mar 19, 2014 · 0 comments

Comments

@davecgh
Copy link
Member

davecgh commented Mar 19, 2014

Rather than expecting users to figure out which port and certs to use, it would be easier if btcctl accepted --testnet and --wallet flags which set the defaults accordingly.

In particular the following chart shows the port that should be selected for each of the combinations of the two flags:

Without --wallet With --wallet
Without --testnet 8334 8332
With --testnet 18334 18332

These flags should be ignored if a specific port is specified via -s/--rpcserver, however if no port is specified via that flag, the default port per the above chart should be appended.

This will allow syntax such as btcctl --testnet -s 192.168.x.x in addition to btcctl -s 192.168.x.x:1234.

Also, the --wallet flag should set the default certs to the wallet certs if they're on the local filesystem (in the same fashion as the current code finds the btcd certs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant