Skip to content

Commit

Permalink
No longer setting keys to 13.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmogul committed Oct 29, 2023
1 parent 19111ee commit 49385ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/toolbox/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
4 changes: 1 addition & 3 deletions src/toolbox/toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 49385ad

Please sign in to comment.