MCPcopy Create free account
hub / github.com/ElementsProject/lightning / on_any_notification

Function on_any_notification

tests/plugins/all_notifications.py:10–14  ·  view source on GitHub ↗
(request, **kwargs)

Source from the content-addressed store, hash-verified

8
9@plugin.subscribe("*")
10def on_any_notification(request, **kwargs):
11 plugin.log("notification {}: {}".format(request.method, kwargs))
12 if request.method == 'shutdown':
13 # A plugin which subscribes to shutdown is expected to exit itself.
14 sys.exit(0)
15
16
17plugin.run()

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected