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

Function on_htlc_accepted

tests/plugins/fail_htlcs.py:9–13  ·  view source on GitHub ↗
(onion, plugin, **kwargs)

Source from the content-addressed store, hash-verified

7
8@plugin.hook("htlc_accepted")
9def on_htlc_accepted(onion, plugin, **kwargs):
10 plugin.log("Failing htlc on purpose")
11 plugin.log("onion: %r" % (onion))
12 # WIRE_TEMPORARY_NODE_FAILURE = 0x2002
13 return {"result": "fail", "failure_message": "2002"}
14
15
16plugin.run()

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected