mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
pytest: Add test for keysend extra-tlvs
This commit is contained in:
committed by
Rusty Russell
parent
a4e3773408
commit
5f9e5d598e
16
tests/plugins/sphinx-receiver.py
Executable file
16
tests/plugins/sphinx-receiver.py
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/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()
|
||||
Reference in New Issue
Block a user