mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
lightningd: list disabled plugins in listconfig.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user