plugin: Populate the request for the htlc_accepted hook

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2019-01-09 16:07:49 +01:00
committed by Rusty Russell
parent b54577041a
commit bf53821f1a
3 changed files with 33 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ def on_disconnect(plugin, id):
@plugin.hook("htlc_accepted")
def on_htlc_accepted(plugin):
def on_htlc_accepted(onion, htlc, plugin):
plugin.log('on_htlc_accepted called')
time.sleep(20)
return None