Skip to content

Add CASPER_NODE_ADDRESS env var.#174

Open
mpapierski wants to merge 2 commits intocasper-ecosystem:devfrom
mpapierski:improvements
Open

Add CASPER_NODE_ADDRESS env var.#174
mpapierski wants to merge 2 commits intocasper-ecosystem:devfrom
mpapierski:improvements

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`.
@mpapierski mpapierski requested review from rafal-ch and zacshowa June 18, 2024 16:08
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

Copy link
Contributor

Choose a reason for hiding this comment

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

to me the client should now use RPC_ADDRESS and the binary client NODE_ADDRESS

Copy link
Contributor

@rafal-ch rafal-ch left a comment

Choose a reason for hiding this comment

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

LGTM 👍

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.

3 participants