There was an error while loading. Please reload this page.
1 parent b8ae9a5 commit 7febb41Copy full SHA for 7febb41
1 file changed
electrum/lnpeer.py
@@ -2231,6 +2231,9 @@ def _check_unfulfilled_htlc(
2231
if self.lnworker.maybe_refuse_to_forward_htlc_that_corresponds_to_payreq_we_created(payment_hash):
2232
_log_fail_reason(f"RHASH corresponds to payreq we created")
2233
raise OnionRoutingFailure(code=OnionFailureCode.TEMPORARY_NODE_FAILURE, data=b'')
2234
+ if processed_onion.trampoline_onion_packet is not None:
2235
+ _log_fail_reason(f"found trampoline onion in non-final onion")
2236
+ raise OnionRoutingFailure(code=OnionFailureCode.INVALID_ONION_PAYLOAD, data=b'')
2237
if outer_onion_payment_secret:
2238
# this is a trampoline forwarding htlc, multiple incoming trampoline htlcs can be collected
2239
payment_key = (payment_hash + outer_onion_payment_secret).hex()
0 commit comments