Skip to content

Commit

Permalink
[Chore] Use named network option for kathmandunet
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pasqu4le authored and krendelhoff2 committed Aug 1, 2022
1 parent 2d8c7ea commit 0317f50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Formula/tezos-node-kathmandunet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion docker/package/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"mainnet": "mainnet",
"jakartanet": "jakartanet",
"ghostnet": "ghostnet",
"kathmandunet": "https://teztnets.xyz/kathmandunet",
"kathmandunet": "kathmandunet",
}
networks_protos = {
"mainnet": ["013-PtJakart"],
Expand Down

0 comments on commit 0317f50

Please sign in to comment.