mirror of
https://github.com/lightning/bolts.git
synced 2025-03-10 17:18:44 +01:00
Rephrase last node payload requirements (#615)
Mention that `outgoing_cltv_value` has to be equal to `min_final_cltv_expiry` and `amt_to_forward` has to be equal to `amount` if the [BOLT #11](11-payment-encoding.md) invoice is used
This commit is contained in:
parent
65784f755f
commit
238c06282d
1 changed files with 4 additions and 2 deletions
|
@ -291,8 +291,10 @@ using an alternate channel.
|
||||||
|
|
||||||
When building the route, the origin node MUST use a payload for
|
When building the route, the origin node MUST use a payload for
|
||||||
the final node with the following values:
|
the final node with the following values:
|
||||||
* `outgoing_cltv_value`: set to the final expiry specified by the recipient
|
* `outgoing_cltv_value`: set to the final expiry specified by the recipient (e.g.
|
||||||
* `amt_to_forward`: set to the final amount specified by the recipient
|
`min_final_cltv_expiry` from a [BOLT #11](11-payment-encoding.md) payment invoice)
|
||||||
|
* `amt_to_forward`: set to the final amount specified by the recipient (e.g. `amount`
|
||||||
|
from a [BOLT #11](11-payment-encoding.md) payment invoice)
|
||||||
|
|
||||||
This allows the final node to check these values and return errors if needed,
|
This allows the final node to check these values and return errors if needed,
|
||||||
but it also eliminates the possibility of probing attacks by the second-to-last
|
but it also eliminates the possibility of probing attacks by the second-to-last
|
||||||
|
|
Loading…
Add table
Reference in a new issue