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

Function notify_warning

tests/plugins/forward_payment_status.py:15–19  ·  view source on GitHub ↗
(plugin, forward_event)

Source from the content-addressed store, hash-verified

13
14@plugin.subscribe("forward_event")
15def notify_warning(plugin, forward_event):
16 # One forward payment may have many notification records for different status,
17 # but one forward payment has only one record in 'listforwards' eventrually.
18 plugin.log("receive a forward recored, status: {}, payment_hash: {}".format(forward_event['status'], forward_event['payment_hash']))
19 plugin.forward_list.append(forward_event)
20
21
22@plugin.method('listforwards_plugin')

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected