From cb71927ed307a270b8c51bd0fa4052cebe8008e2 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Fri, 25 Sep 2020 02:12:53 -0700 Subject: [PATCH] ship other workaround, 2 sets of daemons --- wowstash/config.example.py | 6 ++++++ wowstash/library/docker.py | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/wowstash/config.example.py b/wowstash/config.example.py index d0ca249..17caec3 100644 --- a/wowstash/config.example.py +++ b/wowstash/config.example.py @@ -8,6 +8,12 @@ DAEMON_PORT = 34568 DAEMON_USER = '' DAEMON_PASS = '' +INT_DAEMON_PROTO = 'http' +INT_DAEMON_HOST = 'node.suchwow.xyz' +INT_DAEMON_PORT = 34568 +INT_DAEMON_USER = '' +INT_DAEMON_PASS = '' + # Wallets WALLET_DIR = './data/wallets' WOWNERO_IMAGE = 'lalanza808/wownero:v0.9.0.0' diff --git a/wowstash/library/docker.py b/wowstash/library/docker.py index fbaaacc..d5e23d9 100644 --- a/wowstash/library/docker.py +++ b/wowstash/library/docker.py @@ -27,8 +27,8 @@ class Docker(object): --restore-height {daemon.info()['height']} \ --password {u.wallet_password} \ --mnemonic-language English \ - --daemon-address {config.DAEMON_PROTO}://{config.DAEMON_HOST}:{config.DAEMON_PORT} \ - --daemon-login {config.DAEMON_USER}:{config.DAEMON_PASS} \ + --daemon-address {config.INT_DAEMON_PROTO}://{config.INT_DAEMON_HOST}:{config.INT_DAEMON_PORT} \ + --daemon-login {config.INT_DAEMON_USER}:{config.INT_DAEMON_PASS} \ --log-file /wallet/{u.id}-create.log --command version """ @@ -60,8 +60,8 @@ class Docker(object): --wallet-file /wallet/{u.id}.wallet \ --rpc-login {u.id}:{u.wallet_password} \ --password {u.wallet_password} \ - --daemon-address {config.DAEMON_PROTO}://{config.DAEMON_HOST}:{config.DAEMON_PORT} \ - --daemon-login {config.DAEMON_USER}:{config.DAEMON_PASS} \ + --daemon-address {config.INT_DAEMON_PROTO}://{config.INT_DAEMON_HOST}:{config.INT_DAEMON_PORT} \ + --daemon-login {config.INT_DAEMON_USER}:{config.INT_DAEMON_PASS} \ --log-file /wallet/{u.id}-rpc.log """ try: