From d6f6a73324d2a467af106dbfeb0d17d980cea364 Mon Sep 17 00:00:00 2001 From: tecnovert Date: Tue, 1 Feb 2022 21:05:34 +0200 Subject: [PATCH] tests: Allow passing extra config to Particl nodes. --- tests/basicswap/extended/test_xmr_persistent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/basicswap/extended/test_xmr_persistent.py b/tests/basicswap/extended/test_xmr_persistent.py index d0a44fc..17d8049 100644 --- a/tests/basicswap/extended/test_xmr_persistent.py +++ b/tests/basicswap/extended/test_xmr_persistent.py @@ -186,6 +186,8 @@ class Test(unittest.TestCase): for ip in range(NUM_NODES): if ip != i: fp.write('connect=127.0.0.1:{}\n'.format(PARTICL_PORT_BASE + ip + PORT_OFS)) + for opt in EXTRA_CONFIG_JSON.get('part{}'.format(i), []): + fp.write(opt + '\n') # Pruned nodes don't provide blocks with open(os.path.join(client_path, 'bitcoin', 'bitcoin.conf'), 'r') as fp: