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

Function on_custommsg

tests/plugins/custommsg_a.py:8–13  ·  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 custommessage_a {msg} from peer {peer_id}".format(
10 msg=payload,
11 peer_id=peer_id
12 ))
13 return {'result': 'continue'}
14
15
16plugin.run()

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected