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

Function on_htlc_accepted

tests/plugins/htlc_accepted-failmessage.py:12–18  ·  view source on GitHub ↗
(htlc, onion, plugin, **kwargs)

Source from the content-addressed store, hash-verified

10
11@plugin.hook('htlc_accepted')
12def on_htlc_accepted(htlc, onion, plugin, **kwargs):
13 res = {"result": "fail"}
14
15 if plugin.failmsg is not None:
16 res['failure_message'] = plugin.failmsg
17
18 return res
19
20
21@plugin.method('setfailmsg')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected