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

Add CASPER_NODE_ADDRESS env var. #174

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

mpapierski
Copy link
Contributor

This makes it easier to use multiple commands without remembering to set --node-address. With this change, casper-client will try to load its value from env variable CASPER_NODE_ADDRESS.

This makes it easier to use multiple commands without remembering to set
`--node-address`. With this change casper-client will try to load its
value from env variable `CASPER_NODE_ADDRESS`.
@@ -47,11 +47,13 @@ pub mod node_address {
const ARG_VALUE_NAME: &str = "HOST:PORT";
const ARG_DEFAULT: &str = "http://localhost:7777";
const ARG_HELP: &str = "Hostname or IP and port of node on which HTTP service is running";
const ARG_ENV: &str = "CASPER_NODE_ADDRESS";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

Can we try to avoid CASPER_ prefixes ? Is it still a node or an rpc RPC_ADDRESS ?

It would be great to unify that with CI/CD like

NODE_ADDRESS=http://localhost:7777 (or RPC_ADDRESS)
EVENT_ADDRESS=http://localhost:9999/events/main
SPECULATIVE_ADDRESS=http://localhost:7778

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

Successfully merging this pull request may close these issues.

None yet

2 participants