mirror of
https://github.com/lightning/bolts.git
synced 2025-01-19 05:33:37 +01:00
BOLT4: fix description of incorrect_cltv_expiry
error
The explanation in the requirements section is correct but the error message description was probably copy-pasted from `final_incorrect_cltv_expiry`
This commit is contained in:
parent
8516beb2c4
commit
6e6c28dae5
@ -740,7 +740,11 @@ processing node.
|
||||
* [`2`:`len`]
|
||||
* [`len`:`channel_update`]
|
||||
|
||||
The CLTV expiry in the HTLC doesn't match the value in the onion.
|
||||
The `cltv_expiry` does not comply with the `cltv_expiry_delta` required by
|
||||
the channel from the processing node: it does not satisfy the following
|
||||
requirement:
|
||||
|
||||
cltv_expiry - cltv_expiry_delta >= outgoing_cltv_value
|
||||
|
||||
1. type: UPDATE|14 (`expiry_too_soon`)
|
||||
2. data:
|
||||
@ -833,8 +837,8 @@ A _forwarding node_ MAY, but a _final node_ MUST NOT:
|
||||
- report the amount of the incoming HTLC and the current channel setting for
|
||||
the outgoing channel.
|
||||
- return a `fee_insufficient` error.
|
||||
- if the `outgoing_cltv_value` does NOT match the `update_add_htlc`'s
|
||||
`cltv_expiry` minus the `cltv_expiry_delta` for the outgoing channel:
|
||||
- if the incoming `cltv_expiry` minus the `outgoing_cltv_value` is below the
|
||||
`cltv_expiry_delta` for the outgoing channel:
|
||||
- report the `cltv_expiry` and the current channel setting for the outgoing
|
||||
channel.
|
||||
- return an `incorrect_cltv_expiry` error.
|
||||
|
Loading…
Reference in New Issue
Block a user