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

Function notify_sendpay_success

tests/plugins/sendpay_notifications.py:16–18  ·  view source on GitHub ↗
(plugin, sendpay_success)

Source from the content-addressed store, hash-verified

14
15@plugin.subscribe("sendpay_success")
16def notify_sendpay_success(plugin, sendpay_success):
17 plugin.log("Received a sendpay_success: id={}, payment_hash={}".format(sendpay_success['id'], sendpay_success['payment_hash']))
18 plugin.success_list.append(sendpay_success)
19
20
21@plugin.subscribe("sendpay_failure")

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected