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
|
||||
|
||||
@@ -57,7 +57,6 @@ def test_mpp_pay(node_factory):
|
||||
assert len(is16399) >= 1
|
||||
|
||||
|
||||
@pytest.mark.xfail(strict=True)
|
||||
def test_incoming_payment(node_factory):
|
||||
"""Ensure that we don't fail if the payment is not a paytest.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user