There was an error while loading. Please reload this page.
2 parents d532e2a + 7febb41 commit 68f0c71Copy full SHA for 68f0c71
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