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

Function on_openchannel2

tests/plugins/openchannel_hook_accepter.py:59–61  ·  view source on GitHub ↗

Support for v2 channel opens

(openchannel2, plugin, **kwargs)

Source from the content-addressed store, hash-verified

57
58@plugin.hook('openchannel2')
59def on_openchannel2(openchannel2, plugin, **kwargs):
60 """ Support for v2 channel opens """
61 return run_openchannel(openchannel2['their_funding_msat'], openchannel2['channel_type'], plugin)
62
63
64plugin.run()

Callers

nothing calls this directly

Calls 1

run_openchannelFunction · 0.85

Tested by

no test coverage detected