core-lightning/tests/plugins/sphinx-receiver.py
2021-06-26 10:55:13 +09:30

17 lines
269 B
Python
Executable File

#!/usr/bin/env python3
from pyln.client import Plugin
plugin = Plugin()
@plugin.hook('invoice_payment')
def on_invoice_payment(**kwargs):
"""
"""
plugin.log("invoice_payment kwargs {a}".format(a=kwargs))
return {'result': 'continue'}
plugin.run()