Skip to content

Commit 8d02f33

Browse files
committed
reckless: use modern listconfigs.
Signed-off-by: Rusty Russell <[email protected]>
1 parent ea928bf commit 8d02f33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/reckless

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,9 +696,9 @@ def load_config(reckless_dir: Union[str, None] = None,
696696
net_conf = None
697697
# Does the lightning-cli already reference an explicit config?
698698
try:
699-
active_config = lightning_cli('listconfigs', timeout=3)
699+
active_config = lightning_cli('listconfigs', timeout=3)['configs']
700700
if 'conf' in active_config:
701-
net_conf = LightningBitcoinConfig(path=active_config['conf'])
701+
net_conf = LightningBitcoinConfig(path=active_config['conf']['value_str'])
702702
except RPCError:
703703
pass
704704
if reckless_dir is None:

0 commit comments

Comments
 (0)