diff --git a/src/toolbox/library.py b/src/toolbox/library.py index b81667c..9e0237a 100644 --- a/src/toolbox/library.py +++ b/src/toolbox/library.py @@ -188,13 +188,12 @@ def update_harmony_binary(): else: process_command("curl -LO https://harmony.one/binary && mv binary harmony && chmod +x harmony") process_command("./harmony config dump harmony.conf") - update_text_file(f"{harmony_dir}/harmony.conf", "MaxKeys = 10", "MaxKeys = 13") update_text_file(f"{harmony_dir}/harmony.conf", " DisablePrivateIPScan = false", " DisablePrivateIPScan = true") if os.path.isfile(f"{harmony_dir}/blskey.pass"): update_text_file(f"{harmony_dir}/harmony.conf", 'PassFile = ""', 'PassFile = "blskey.pass"') - print(f"* Harmony binary installed, {harmony_dir}/harmony.conf created and modified: 13 max keys, blskey.pass file, disabled private ip scan. ") + print(f"* Harmony binary installed, {harmony_dir}/harmony.conf created and modified: blskey.pass file, disabled private ip scan. ") else: - print(f"* Harmony binary installed, {harmony_dir}/harmony.conf created and modified: 13 max keys, disabled private ip scan. ") + print(f"* Harmony binary installed, {harmony_dir}/harmony.conf created and modified: disabled private ip scan. ") return diff --git a/src/toolbox/toolbox.py b/src/toolbox/toolbox.py index 3e14d97..5978cfd 100644 --- a/src/toolbox/toolbox.py +++ b/src/toolbox/toolbox.py @@ -417,9 +417,7 @@ def safety_defaults() -> None: first_setup() if environ.get("SERVICE_NAME") is None: set_var(config.dotenv_file, "SERVICE_NAME", "harmony") - # always set conf to 13 keys, shard max - if os.path.exists(config.harmony_conf): - update_text_file(config.harmony_conf, "MaxKeys = 10", "MaxKeys = 13") + # set blskey.pass file if it exists if os.path.isfile(f"{config.harmony_dir}/blskey.pass"): update_text_file(config.harmony_conf, 'PassFile = ""', 'PassFile = "blskey.pass"') passphrase_status()