listconfigs: add plugin field if config is for a plugin.

I chose the full path name, not just the basename.

Suggested-by: @SimonVrouwe
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-06-02 12:06:21 +09:30
parent 6275dd384c
commit 3ac949d4c3
7 changed files with 45 additions and 1 deletions

View File

@@ -738,6 +738,7 @@ def test_listconfigs(node_factory, bitcoind, chainparams):
c = configs[name]
assert c['source'] == 'cmdline'
assert c[valfield] == val
assert 'plugin' not in c
# These are aliases, but we don't print the (unofficial!) wumbo.
assert 'wumbo' not in configs