(onion, plugin, **kwargs)
| 7 | |
| 8 | @plugin.hook("htlc_accepted") |
| 9 | def 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 | |
| 16 | plugin.run() |