You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 04-onion-routing.md
+33-5Lines changed: 33 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -742,18 +742,24 @@ The recipient:
742
742
- Fail all HTLCs with `incorrect_or_unknown_payment_details`.
743
743
- If neither `node_id` nor `blinded_paths` are present (we are the final destination):
744
744
- If `payment_secret` in `payload` is not equal to `trampinfo`.`incoming_payment_secret`:
745
-
-Reject payment
745
+
-Fail all HTLCs with `incorrect_or_unknown_payment_details`.
746
746
- Check for trampoline misbehaviour (below)
747
747
- SHOULD process the payment as if the `payload` contained the `minitramp``payment_secret` and `payment_metadata`.
748
748
- Otherwise: (forwarding):
749
749
- If both `next_node` and `blinded_paths` are present:
750
-
- Reject payment
750
+
- Fail all HTLCs with `incorrect_or_unknown_payment_details`.
751
+
- If the number of `blinded_paths` and `blinded_payinfo` do not match:
752
+
- Fail all HTLCs with `incorrect_or_unknown_payment_details`.
751
753
- Determine a route to `next_node` or `blinded_paths` for `amount_to_send` using `next_cltv_value`.
754
+
- If no route can be found:
755
+
- Fail all HTLCs with `unknown_next_trampoline`.
752
756
- If the incoming amount or cltv is insufficient:
753
-
- Reject payment
754
-
- If the number of `blinded_paths` and `blinded_payinfo` do not match:
755
-
- Reject payment
757
+
- Fail all HTLCs with `trampoline_fee_or_expiry_insufficient`.
756
758
- MUST include `trampinfo`.`minitramp`, `outgoing_payment_secret` (as `payment_secret`) and `outgoing_payment_info` (as `payment_metadata`) in the inner `payload` of the payment onion.
759
+
- If the payment fails:
760
+
- Fail all HTLCs with `temporary_trampoline_failure`.
761
+
- Otherwise:
762
+
- Use the preimage to succeed all HTLCs.
757
763
- Otherwise (`minitramp` is NOT present):
758
764
- Check for trampoline misbehaviour (below)
759
765
@@ -1427,6 +1433,28 @@ reasonable time.
1427
1433
1428
1434
An error occurred within the blinded path.
1429
1435
1436
+
1. type: NODE|25 (`temporary_trampoline_failure`)
1437
+
1438
+
The trampoline node was unable to relay the payment to the next trampoline
1439
+
node, but may be able to handle it, or others, later.
1440
+
This error usually indicates that routes were found but failed because of
0 commit comments