Skip to content

Commit

Permalink
Add final node outgoing cltv requirements
Browse files Browse the repository at this point in the history
Note that this depends on #1032 which clarifies the final node requirements
for non-blinded payments.
  • Loading branch information
t-bast committed Oct 20, 2022
1 parent 9b1d97d commit 908ade0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 04-onion-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ The reader:
- MUST return an error if the payload contains other tlv fields than `encrypted_recipient_data`, `current_blinding_point`, `amt_to_forward`, `outgoing_cltv_value` and `total_amount_msat`.
- MUST return an error if `amt_to_forward` or `outgoing_cltv_value` are not present.
- MUST return an error if `amt_to_forward` is below what it expects for the payment.
- MUST return an error if incoming `cltv_expiry` < `outgoing_cltv_value`.
- MUST return an error if incoming `cltv_expiry` < `current_block_height` + `min_final_cltv_expiry_delta`.
- Otherwise (it is not part of a blinded route):
- MUST return an error if `amt_to_forward` or `outgoing_cltv_value` are not present.
- if it is not the final node:
Expand Down

0 comments on commit 908ade0

Please sign in to comment.