1
0
mirror of https://github.com/lightning/bolts.git synced 2025-01-18 21:32:31 +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:
sstone 2018-09-05 14:01:24 +02:00 committed by Olaoluwa Osuntokun
parent 8516beb2c4
commit 6e6c28dae5

View File

@ -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.