mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
Use deterministic command-line ordering when executing lightningd from tests
This commit is contained in:
committed by
Christian Decker
parent
d9266afcda
commit
6757255ba4
@@ -253,7 +253,7 @@ class LightningD(TailableProc):
|
|||||||
self.cmd_line += ['--dev-broadcast-interval=1000']
|
self.cmd_line += ['--dev-broadcast-interval=1000']
|
||||||
if not random_hsm:
|
if not random_hsm:
|
||||||
self.cmd_line += ['--dev-hsm-seed={}'.format(seed.hex())]
|
self.cmd_line += ['--dev-hsm-seed={}'.format(seed.hex())]
|
||||||
self.cmd_line += ["--{}={}".format(k, v) for k, v in LIGHTNINGD_CONFIG.items()]
|
self.cmd_line += ["--{}={}".format(k, v) for k, v in sorted(LIGHTNINGD_CONFIG.items())]
|
||||||
self.prefix = 'lightningd(%d)' % (port)
|
self.prefix = 'lightningd(%d)' % (port)
|
||||||
|
|
||||||
if not os.path.exists(lightning_dir):
|
if not os.path.exists(lightning_dir):
|
||||||
|
|||||||
Reference in New Issue
Block a user