Files
plugins/autoreload/tests/dummy2.py
Christian Decker 63c9872ec2 autoreload: Add tests and warning when manifest changes
Rene pointed out that we were silently accepting an updated manifest despite
not actually being able to register it with `lightningd`. This meant that if
options, RPC methods, hooks or notifications get added or removed they will
not be wired in correctly.

The warning is really obnoxious and multi-line to draw the attention.

Suggested-by: Rene Pickhardt <@renepickhardt>
2020-05-18 22:44:49 +02:00

12 lines
138 B
Python
Executable File

#!/usr/bin/env python3
from pyln.client import Plugin
plugin = Plugin()
@plugin.method('dummy')
def on_dummy():
pass
plugin.run()