From 0317f506ab1c589bb39d6423671b8207cf350af2 Mon Sep 17 00:00:00 2001 From: pasqu4le Date: Mon, 1 Aug 2022 16:37:10 +0200 Subject: [PATCH] [Chore] Use named network option for kathmandunet Problem: Octez v14.0 supports kathmandunet as a named network, but in our definitions we still use a network config. Solution: update the node Formula and package definition to use the named option for the kathmandu network. --- Formula/tezos-node-kathmandunet.rb | 6 +++--- docker/package/packages.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Formula/tezos-node-kathmandunet.rb b/Formula/tezos-node-kathmandunet.rb index 62d5acf8d..4a6abe732 100644 --- a/Formula/tezos-node-kathmandunet.rb +++ b/Formula/tezos-node-kathmandunet.rb @@ -26,14 +26,14 @@ def install "$node" config init \ --data-dir "$DATA_DIR" \ --rpc-addr "$NODE_RPC_ADDR" \ - --network=https://teztnets.xyz/kathmandunet \ + --network=kathmandunet \ "$@" else echo "Updating the node configuration..." "$node" config update \ --data-dir "$DATA_DIR" \ --rpc-addr "$NODE_RPC_ADDR" \ - --network=https://teztnets.xyz/kathmandunet \ + --network=kathmandunet \ "$@" fi @@ -82,6 +82,6 @@ def plist end def post_install mkdir_p "#{var}/lib/tezos/node-kathmandunet" - system "tezos-node", "config", "init", "--data-dir" "#{var}/lib/tezos/node-kathmandunet", "--network", "https://teztnets.xyz/kathmandunet" + system "tezos-node", "config", "init", "--data-dir" "#{var}/lib/tezos/node-kathmandunet", "--network", "kathmandunet" end end diff --git a/docker/package/packages.py b/docker/package/packages.py index bf6725f6c..aa5617b4c 100644 --- a/docker/package/packages.py +++ b/docker/package/packages.py @@ -19,7 +19,7 @@ "mainnet": "mainnet", "jakartanet": "jakartanet", "ghostnet": "ghostnet", - "kathmandunet": "https://teztnets.xyz/kathmandunet", + "kathmandunet": "kathmandunet", } networks_protos = { "mainnet": ["013-PtJakart"],