Skip to content

Commit

Permalink
Shard
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmogul committed Oct 29, 2023
1 parent fcc863c commit 9a51902
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/toolbox/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def __init__(self):
self.hmy_tmp_path = "/tmp/hmy"
self.harmony_tmp_path = "/tmp/harmony"
self.folder_checks = ["harmony", "harmony0", "harmony1", "harmony2", "harmony3", "harmony4"]
self.shard = environ.get("SHARD")
self.network_switch = environ.get("NETWORK_SWITCH")
self.shard = environ.get("SHARD") or "4"
self.network_switch = environ.get("NETWORK_SWITCH") or "mainnet"

@staticmethod
def get_url(timeout=5) -> str:
Expand Down
2 changes: 1 addition & 1 deletion src/toolbox/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ def check_space_requirements(shard: int, directory: str) -> bool:


def get_shard_menu() -> None:
if not environ.get("SHARD"):
if not environ.get("SHARD") or environ.get("SHARD") == "4":
print(f"{string_stars()}\n* Gathering more information about your server.\n{string_stars()}")
print(f"* Which shard do you want this node to sign blocks on?\n{string_stars()}")
menu_options = [
Expand Down

0 comments on commit 9a51902

Please sign in to comment.