Skip to content

Commit

Permalink
Update path to node config with casper-launcher changes
Browse files Browse the repository at this point in the history
  • Loading branch information
linclelinkpart5 committed Feb 11, 2021
1 parent dc7eb8d commit de5efd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sh/scripts/cache_register_nctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def _get_artefacts_node(path: pathlib.Path) -> typing.Tuple[int, dict, pathlib.P
"""
# Set path to config.
path_cfg = path / "config" / "node-config.toml"
path_cfg = path / "config" / "1_0_0" / "config.toml"
if not path_cfg.exists():
raise ValueError(f"Invalid nctl node - node config toml file not found: {path}")

Expand Down Expand Up @@ -309,8 +309,8 @@ def _register_node(network: Network, accounts: dict, info: typing.Tuple[int, dic

def _get_node_port(port_type:str, net_index: int, node_index: int) -> int:
"""Returns a node port.
"""
"""
if port_type == "rpc":
return 40000 + (net_index * 100) + node_index
if port_type == "rest":
Expand Down

0 comments on commit de5efd3

Please sign in to comment.