We die silently, i.e., without returning a response `lightningd` should detect that and recover.
(plugin, htlc, onion, **kwargs)
| 15 | |
| 16 | @plugin.hook('htlc_accepted') |
| 17 | def 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 | |
| 26 | plugin.run() |