mirror of
https://github.com/lightning/bolts.git
synced 2025-02-24 14:50:58 +01:00
BOLT 2: fix terminal node ctlv_expiry calc.
It *is* 2R+G+S, which is 7, not six. It's also identical to the previous one, so just say that. Reported-by: Shannon Appelcline <shannona@skotos.net> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
da67c9a3f7
commit
cb78c50b77
1 changed files with 3 additions and 4 deletions
|
@ -618,11 +618,10 @@ the channel has to be failed and the HTLC fulfilled on-chain before its
|
||||||
`cltv_expiry`. See steps 4-7 above, which imply a deadline of `2R+G+S`
|
`cltv_expiry`. See steps 4-7 above, which imply a deadline of `2R+G+S`
|
||||||
blocks before `cltv_expiry`: 7 blocks is reasonable.
|
blocks before `cltv_expiry`: 7 blocks is reasonable.
|
||||||
|
|
||||||
4. The minimum `cltv_expiry` accepted for terminal payments: the
|
4. The minimum `cltv_expiry` accepted for terminal payments: this
|
||||||
worst case for the terminal node C lower at `2R+G+S` blocks (steps
|
is the same calculation as above. The default in
|
||||||
1-3 above don't apply). The default in
|
|
||||||
[BOLT #11](11-payment-encoding.md) is 9, which is slightly more
|
[BOLT #11](11-payment-encoding.md) is 9, which is slightly more
|
||||||
conservative than the 6 this calculation suggests.
|
conservative than the 7 this calculation suggests.
|
||||||
|
|
||||||
#### Requirements
|
#### Requirements
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue