(plugin, channel_opened, **kwargs)
| 16 | |
| 17 | @plugin.subscribe("channel_opened") |
| 18 | def 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") |