plugin: Parse response for htlc_accepted hook

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

View File

@@ -38,7 +38,7 @@ def on_disconnect(plugin, id):
def on_htlc_accepted(onion, htlc, plugin):
plugin.log('on_htlc_accepted called')
time.sleep(20)
return None
return {'result': 'continue'}
plugin.add_option('greeting', 'Hello', 'The greeting I should use.')