Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/lightning
/ on_openchannel2
Function
on_openchannel2
tests/plugins/openchannel_hook_accept.py:20–23 ·
view source on GitHub ↗
(openchannel2, plugin, **kwargs)
Source
from the content-addressed store, hash-verified
18
19
@plugin.hook(
'openchannel2'
)
20
def
on_openchannel2(openchannel2, plugin, **kwargs):
21
msg =
"accept on principle"
22
plugin.log(msg)
23
return
{
'result'
:
'continue'
}
24
25
26
plugin.run()
Callers
nothing calls this directly
Calls
1
log
Method · 0.80
Tested by
no test coverage detected