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

Function on_openchannel

tests/plugins/zeroreserve.py:11–18  ·  view source on GitHub ↗
(openchannel, plugin, **kwargs)

Source from the content-addressed store, hash-verified

9
10@plugin.hook('openchannel')
11def on_openchannel(openchannel, plugin, **kwargs):
12 plugin.log(repr(openchannel))
13 reserve = plugin.options['reserve']['value']
14
15 if reserve is None:
16 return {'result': 'continue'}
17 else:
18 return {'result': 'continue', 'reserve': reserve}
19
20
21plugin.add_option(

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected