mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +01:00
invoice_hook: remove nested result.
I misunderstood the API, this ended up nesting a result inside the JSON-RPC result. No concerns about backwards compatibility since this is so new. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
7f7ad4f89f
commit
ca7864f2f3
@@ -18,9 +18,9 @@ def on_payment(payment, plugin):
|
||||
if payment['preimage'].endswith('0'):
|
||||
# FIXME: Define this!
|
||||
WIRE_TEMPORARY_NODE_FAILURE = 0x2002
|
||||
return {'result': {'failure_code': WIRE_TEMPORARY_NODE_FAILURE}}
|
||||
return {'failure_code': WIRE_TEMPORARY_NODE_FAILURE}
|
||||
|
||||
return {'result': {}}
|
||||
return {}
|
||||
|
||||
|
||||
plugin.run()
|
||||
|
||||
Reference in New Issue
Block a user