(plugin, forward_event)
| 13 | |
| 14 | @plugin.subscribe("forward_event") |
| 15 | def 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') |