commit eda9097e894b4e94b17160701cf242ad8da76635
parent 6cc3480356ff61e5687b20fde0a3d8d3616f7295
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 5 Mar 2021 12:47:18 +0100
trampoline forwarding: return UNKNOWN_NEXT_PEER if we cannot find a route
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py
@@ -1460,7 +1460,7 @@ class Peer(Logger):
self.lnworker.trampoline_forwarding_failures[payment_hash] = e
except PaymentFailure as e:
# FIXME: adapt the error code
- error_reason = OnionRoutingFailure(code=OnionFailureCode.TRAMPOLINE_FEE_INSUFFICIENT, data=b'')
+ error_reason = OnionRoutingFailure(code=OnionFailureCode.UNKNOWN_NEXT_PEER, data=b'')
self.lnworker.trampoline_forwarding_failures[payment_hash] = error_reason
asyncio.ensure_future(forward_trampoline_payment())