(plugin, sendpay_failure)
| 20 | |
| 21 | @plugin.subscribe("sendpay_failure") |
| 22 | def notify_sendpay_failure(plugin, sendpay_failure): |
| 23 | plugin.log("Received a sendpay_failure: id={}, payment_hash={}".format(sendpay_failure['data']['id'], |
| 24 | sendpay_failure['data']['payment_hash'])) |
| 25 | plugin.failure_list.append(sendpay_failure) |
| 26 | |
| 27 | |
| 28 | @plugin.method('listsendpays_plugin') |