2019-01-11 21:39:18 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2020-02-11 22:04:21 +00:00
|
|
|
from pyln.client import Plugin
|
2019-01-11 21:39:18 +00:00
|
|
|
|
|
|
|
plugin = Plugin()
|
|
|
|
|
|
|
|
|
|
|
|
@plugin.hook("htlc_accepted")
|
2019-08-05 01:19:48 +01:00
|
|
|
def on_htlc_accepted(onion, htlc, plugin, **kwargs):
|
2019-01-11 21:39:18 +00:00
|
|
|
return {"result": "resolve", "payment_key": "00" * 32}
|
|
|
|
|
|
|
|
|
|
|
|
plugin.run()
|