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

Function on_custommsg

tests/plugins/allow_even_msgs.py:8–10  ·  view source on GitHub ↗
(peer_id, payload, plugin, message=None, **kwargs)

Source from the content-addressed store, hash-verified

6
7@plugin.hook('custommsg')
8def on_custommsg(peer_id, payload, plugin, message=None, **kwargs):
9 plugin.log("Got message {}".format(int(payload[:4], 16)))
10 return {'result': 'continue'}
11
12
13plugin.run()

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected