Skip to content

Commit

Permalink
Adding default for BIN_MODE to not require updating .conf files.
Browse files Browse the repository at this point in the history
  • Loading branch information
sacherjj committed Oct 23, 2021
1 parent 8e6ccb6 commit d0f9301
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/maintainer_scripts/node_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _load_config_values(self, config):
bin_mode = "BIN_MODE"

file_path = NodeUtil.NET_CONFIG_PATH / config
expected_keys = (source_url, network_name, bin_mode)
expected_keys = (source_url, network_name)
config = {}
for line in file_path.read_text().splitlines():
if line.strip():
Expand All @@ -95,7 +95,7 @@ def _load_config_values(self, config):
raise ValueError(f"Expected config value not found: {key} in {file_path}")
self._url = config[source_url]
self._network_name = config[network_name]
self._bin_mode = config[bin_mode]
self._bin_mode = config.get(bin_mode, "mainnet")

def _get_protocols(self):
""" Downloads protocol versions for network """
Expand Down

0 comments on commit d0f9301

Please sign in to comment.