(htlc, onion, plugin, **kwargs)
| 10 | |
| 11 | @plugin.hook('htlc_accepted') |
| 12 | def 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') |
nothing calls this directly
no outgoing calls
no test coverage detected