Skip to content

Commit 2ac17d0

Browse files
authored
Merge pull request #9433 from f321x/change_onion_message
Change OnionFailureCode returned when failing trampoline forwarding
2 parents dffdebf + c921100 commit 2ac17d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

electrum/lnpeer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,7 @@ async def maybe_forward_trampoline(
20162016
self.logger.debug(
20172017
f"maybe_forward_trampoline. PaymentFailure for {payment_hash.hex()=}, {payment_secret.hex()=}: {e!r}")
20182018
# FIXME: adapt the error code
2019-
raise OnionRoutingFailure(code=OnionFailureCode.UNKNOWN_NEXT_PEER, data=b'')
2019+
raise OnionRoutingFailure(code=OnionFailureCode.TRAMPOLINE_FEE_INSUFFICIENT, data=b'')
20202020

20212021
def _maybe_refuse_to_forward_htlc_that_corresponds_to_payreq_we_created(self, payment_hash: bytes) -> bool:
20222022
"""Returns True if the HTLC should be failed.

0 commit comments

Comments
 (0)