basicswap-prepare tries to initialise coin wallets from Particl mnemonic

Bitcoin 0.20: 'Cannot set a new HD seed while still in Initial Block Download.' Removed in 0.21
This commit is contained in:
tecnovert
2020-12-04 01:46:01 +02:00
parent 3bbb483a0a
commit 5a163e0f86
18 changed files with 754 additions and 93 deletions

View File

@@ -55,7 +55,7 @@ from tests.basicswap.common import (
TEST_HTTP_PORT,
)
from basicswap.contrib.rpcauth import generate_salt, password_to_hmac
from bin.basicswap_run import startDaemon
from bin.basicswap_run import startDaemon, startXmrDaemon
logger = logging.getLogger()
@@ -479,12 +479,9 @@ class Test(unittest.TestCase):
for d in cls.xmr_daemons:
try:
d.wait(timeout=20)
if d.stdout:
d.stdout.close()
if d.stderr:
d.stderr.close()
if d.stdin:
d.stdin.close()
for fp in (d.stdout, d.stderr, d.stdin):
if fp:
fp.close()
except Exception as e:
logging.info('Closing %d, error %s', d.pid, str(e))
@@ -497,12 +494,9 @@ class Test(unittest.TestCase):
for d in cls.part_daemons + cls.btc_daemons:
try:
d.wait(timeout=20)
if d.stdout:
d.stdout.close()
if d.stderr:
d.stderr.close()
if d.stdin:
d.stdin.close()
for fp in (d.stdout, d.stderr, d.stdin):
if fp:
fp.close()
except Exception as e:
logging.info('Closing %d, error %s', d.pid, str(e))