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

Function on_connect

contrib/plugins/helloworld.py:34–35  ·  view source on GitHub ↗
(plugin, connect, **kwargs)

Source from the content-addressed store, hash-verified

32
33@plugin.subscribe("connect")
34def on_connect(plugin, connect, **kwargs):
35 plugin.log("Received connect event for peer {}".format(connect))
36
37
38@plugin.subscribe("disconnect")

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected