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

[BUG] - CARDANO_NODE_SOCKET_PATH env var needed even when --socket-path is used with transaction build #5199

Closed
mkoura opened this issue May 6, 2023 · 2 comments
Labels
8.0.0 issues in 8.0.0 CLI comp: cardano-cli Stale type: bug Something is not working user type: internal Created by an IOG employee

Comments

@mkoura
Copy link
Contributor

mkoura commented May 6, 2023

Internal

Area
Other Any other topic (Delegation, Ranking, ...).

Summary
The --socket-path overrides the CARDANO_NODE_SOCKET_PATH environment variable. However in case of cardano-cli transaction build the CARDANO_NODE_SOCKET_PATH environment variable is needed even when the --socket-path is used:

cardano-cli transaction build --tx-in "3ff20a5801b7b504de3793b4507d97c28665abddb5394457068b106fe897e709#0" --tx-out "addr_test1vqzd976h3y65hdrfyhr26pxjd8gjqg0sjhcu0pjt0g6l35ghw3x74+1500000" --change-address addr_test1vze3a3ljzsa2r2s3un8qlmqep8uylxrqqzuyvnkse2njn2gncqzjx --out-file test_build_transfer_funds_ci0_erj_tx.body --babbage-era --testnet-magic 42 --socket-path /home/martink/Source/repos/cardano-node/state-cluster0/bft1.socket

Command failed: transaction build Error: Error while looking up environment variable:
CARDANO_NODE_SOCKET_PATH Error: "CARDANO_NODE_SOCKET_PATH"

That is not the case for other commands that accept --socket-path:

cardano-cli query tip --testnet-magic 42 --socket-path /home/martink/Source/repos/cardano-node/state-cluster0/bft1.socket --cardano-mode

{
    "block": 1626,
    "epoch": 15,
    "era": "Babbage",
    "hash": "a694b02252152671630240d4456d394178b6fd238f9cebed4a127de5f8033772",
    "slot": 15747,
    "slotInEpoch": 747,
    "slotsToEpochEnd": 253,
    "syncProgress": "100.00"
}

Expected behavior
The CARDANO_NODE_SOCKET_PATH environment variable is not needed when the --socket-path is used.

System info:

  • OS Name: Linux
  • OS Version: Fedora 37
  • Node version: 529806a
  • CLI version: 529806a
@mkoura mkoura added CLI type: bug Something is not working user type: internal Created by an IOG employee comp: cardano-cli 8.0.0 issues in 8.0.0 labels May 6, 2023
@github-actions
Copy link

github-actions bot commented Jun 6, 2023

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

@github-actions github-actions bot added the Stale label Jun 6, 2023
@mkoura
Copy link
Contributor Author

mkoura commented Jun 8, 2023

Fixed in node version 8.1.0.

@mkoura mkoura closed this as completed Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.0.0 issues in 8.0.0 CLI comp: cardano-cli Stale type: bug Something is not working user type: internal Created by an IOG employee
Projects
None yet
Development

No branches or pull requests

1 participant