From c575625097ca628e82c53e3636fce81f10f1a09d Mon Sep 17 00:00:00 2001 From: nahuhh <50635951+nahuhh@users.noreply.github.com> Date: Fri, 17 Jan 2025 14:54:56 +0000 Subject: [PATCH] help: add --upgradecores --- basicswap/bin/prepare.py | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/basicswap/bin/prepare.py b/basicswap/bin/prepare.py index eb2655d..836b2b3 100755 --- a/basicswap/bin/prepare.py +++ b/basicswap/bin/prepare.py @@ -268,10 +268,18 @@ TOR_PROXY_HOST = os.getenv("TOR_PROXY_HOST", "127.0.0.1") TOR_PROXY_PORT = int(os.getenv("TOR_PROXY_PORT", 9050)) TOR_CONTROL_PORT = int(os.getenv("TOR_CONTROL_PORT", 9051)) TOR_DNS_PORT = int(os.getenv("TOR_DNS_PORT", 5353)) -TOR_CONTROL_LISTEN_INTERFACE = os.getenv("TOR_CONTROL_LISTEN_INTERFACE", "127.0.0.1" if BSX_LOCAL_TOR else "0.0.0.0") -TORRC_PROXY_HOST = os.getenv("TORRC_PROXY_HOST", "127.0.0.1" if BSX_LOCAL_TOR else "0.0.0.0") -TORRC_CONTROL_HOST = os.getenv("TORRC_CONTROL_HOST", "127.0.0.1" if BSX_LOCAL_TOR else "0.0.0.0") -TORRC_DNS_HOST = os.getenv("TORRC_DNS_HOST", "127.0.0.1" if BSX_LOCAL_TOR else "0.0.0.0") +TOR_CONTROL_LISTEN_INTERFACE = os.getenv( + "TOR_CONTROL_LISTEN_INTERFACE", "127.0.0.1" if BSX_LOCAL_TOR else "0.0.0.0" +) +TORRC_PROXY_HOST = os.getenv( + "TORRC_PROXY_HOST", "127.0.0.1" if BSX_LOCAL_TOR else "0.0.0.0" +) +TORRC_CONTROL_HOST = os.getenv( + "TORRC_CONTROL_HOST", "127.0.0.1" if BSX_LOCAL_TOR else "0.0.0.0" +) +TORRC_DNS_HOST = os.getenv( + "TORRC_DNS_HOST", "127.0.0.1" if BSX_LOCAL_TOR else "0.0.0.0" +) TEST_TOR_PROXY = toBool( os.getenv("TEST_TOR_PROXY", "true") @@ -1593,6 +1601,9 @@ def printHelp(): print("--withoutcoin= Do not prepare system to run daemon for coin.") print("--addcoin= Add coin to existing setup.") print("--disablecoin= Make coin inactive.") + print( + "--upgradecores Upgrade all coin cores present in basicswap.json. Optionally use alongside --withcoin= or --withoutcoin=" + ) print("--preparebinonly Don't prepare settings or datadirs.") print("--nocores Don't download and extract any coin clients.") print("--usecontainers Expect each core to run in a unique container.")