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

Function on_htlc_accepted

tests/plugins/hook-crash.py:17–23  ·  view source on GitHub ↗

We die silently, i.e., without returning a response `lightningd` should detect that and recover.

(plugin, htlc, onion, **kwargs)

Source from the content-addressed store, hash-verified

15
16@plugin.hook('htlc_accepted')
17def on_htlc_accepted(plugin, htlc, onion, **kwargs):
18 """We die silently, i.e., without returning a response
19
20 `lightningd` should detect that and recover.
21 """
22 plugin.log("Plugin is about to crash...")
23 sys.exit(1)
24
25
26plugin.run()

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected