tests: Allow passing extra config to Particl nodes.

This commit is contained in:
tecnovert 2022-02-01 21:05:34 +02:00
parent 67518efcad
commit d6f6a73324
No known key found for this signature in database
GPG Key ID: 8ED6D8750C4E3F93

View File

@ -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: