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

New environment variable CARDANO_NODE_NETWORK_ID #5119

Merged

Conversation

newhoggy
Copy link
Contributor

@newhoggy newhoggy commented Apr 18, 2023

CARDANO_NODE_SOCKET_PATH environment variable is now recognised by every command that took a --testnet-magic CLI argument.

CARDANO_NODE_SOCKET_PATH=... cardano-cli query tip --testnet-magic 1706

Can now be written as:

CARDANO_NODE_NETWORK_ID=1706 CARDANO_NODE_SOCKET_PATH=... cardano-cli query tip

@newhoggy newhoggy changed the title Newhoggy/new environment variable cardano node network New environment variable cardano node network Apr 18, 2023
@newhoggy newhoggy marked this pull request as ready for review April 18, 2023 09:34
@newhoggy newhoggy force-pushed the newhoggy/new-environment-variable-CARDANO_NODE_NETWORK_ID branch 4 times, most recently from 8994693 to 57720a6 Compare April 18, 2023 10:02
@newhoggy newhoggy changed the title New environment variable cardano node network New environment variable CARDANO_NODE_NETWORK_ID Apr 18, 2023
@newhoggy newhoggy force-pushed the newhoggy/new-environment-variable-CARDANO_NODE_NETWORK_ID branch 2 times, most recently from ba45ca0 to 5a5632a Compare April 19, 2023 00:15
@newhoggy newhoggy requested a review from carbolymer April 19, 2023 09:59
@newhoggy newhoggy force-pushed the newhoggy/new-environment-variable-CARDANO_NODE_NETWORK_ID branch from 5a5632a to 02567de Compare April 19, 2023 12:15
cardano-cli/src/Cardano/CLI/Common/Parsers.hs Outdated Show resolved Hide resolved
@@ -1169,7 +1169,7 @@ runTxCalculateMinFee (File txbodyFilePath) nw pParamsFile
let txbody = getTxBody unwitTx
let tx = makeSignedTransaction [] txbody
Lovelace fee = estimateTransactionFee
(fromMaybe Mainnet nw)
nw
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@Jimbo4350 Jimbo4350 self-requested a review April 25, 2023 00:19
@newhoggy newhoggy added this pull request to the merge queue Apr 25, 2023
Merged via the queue into master with commit f5640ef Apr 25, 2023
@iohk-bors iohk-bors bot deleted the newhoggy/new-environment-variable-CARDANO_NODE_NETWORK_ID branch April 25, 2023 03:07
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