lightningd: list disabled plugins in listconfig.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-05-05 10:45:34 +09:30
parent 24063ca972
commit fe365f930f
4 changed files with 24 additions and 1 deletions

View File

@@ -322,6 +322,12 @@ def test_plugin_disable(node_factory):
n.rpc.plugin_startdir(directory=os.path.join(os.getcwd(), "contrib/plugins"))
n.daemon.wait_for_log('helloworld.py: disabled via disable-plugin')
# Check that list works
n = node_factory.get_node(options={'disable-plugin':
['something-else.py', 'helloworld.py']})
assert n.rpc.listconfigs()['disable-plugin'] == ['something-else.py', 'helloworld.py']
def test_plugin_hook(node_factory, executor):
"""The helloworld plugin registers a htlc_accepted hook.