MCPcopy Create free account
hub / github.com/ElementsProject/lightning / downgrade_cmdline

Function downgrade_cmdline

tests/test_downgrade.py:17–31  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

15
16
17def downgrade_cmdline(node):
18 # lightning-downgrade understands a subset of the options
19 # to lightningd.
20 downgrade_opts = []
21 for o in node.daemon.opts:
22 if o in ('network', 'lightning-dir', 'conf', 'rpc-file', 'wallet'):
23 if node.daemon.opts[o] is None:
24 downgrade_opts.append(f"--{o}")
25 else:
26 downgrade_opts.append(f"--{o}={node.daemon.opts[o]}")
27
28 cmd_line = ["tools/lightning-downgrade"] + downgrade_opts
29 if os.getenv("VALGRIND") == "1":
30 cmd_line = ['valgrind', '-q', '--error-exitcode=7'] + cmd_line
31 return cmd_line
32
33
34def test_downgrade(node_factory, executor):

Callers 2

test_downgradeFunction · 0.85
test_downgrade_biasFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected