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

Function notify_sendpay_failure

tests/plugins/sendpay_notifications.py:22–25  ·  view source on GitHub ↗
(plugin, sendpay_failure)

Source from the content-addressed store, hash-verified

20
21@plugin.subscribe("sendpay_failure")
22def 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')

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected