mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-23 16:14:20 +01:00
paytest: Fix issue with payments destined for the current node
See previous commit for details.
This commit is contained in:
committed by
Michael Schmoock
parent
fb77c4989b
commit
efd1b7e86a
@@ -246,7 +246,7 @@ def on_htlc_accepted(onion, htlc, request, plugin, *args, **kwargs):
|
||||
)
|
||||
)
|
||||
# If this is not a test payment, pass it on
|
||||
if onion["short_channel_id"] != "1x1x1":
|
||||
if 'short_channel_id' not in onion or onion["short_channel_id"] != "1x1x1":
|
||||
return request.set_result({"result": "continue"})
|
||||
|
||||
# Decode the onion so we get the details the virtual recipient
|
||||
|
||||
Reference in New Issue
Block a user