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

Function channel_opened

tests/plugins/misc_notifications.py:18–22  ·  view source on GitHub ↗
(plugin, channel_opened, **kwargs)

Source from the content-addressed store, hash-verified

16
17@plugin.subscribe("channel_opened")
18def channel_opened(plugin, channel_opened, **kwargs):
19 plugin.log("A channel was opened to us by {}, with an amount"
20 " of {} and the following funding transaction id: {}"
21 .format(channel_opened["id"], channel_opened["funding_msat"],
22 channel_opened["funding_txid"]))
23
24
25@plugin.subscribe("channel_state_changed")

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected