Skip to content

Commit c5693d3

Browse files
t-bastrustyrussell
authored andcommitted
Update Bolt 11 default recommendation
1 parent 886bf7a commit c5693d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

02-peer-protocol.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ almost arbitrary fees), `S` should be small during normal operation; although,
745745
given that block times are irregular, empty blocks still occur, fees may vary
746746
greatly, and the fees cannot be bumped on HTLC transactions, `S=12` should be
747747
considered a minimum. `S` is also the parameter that may vary the most under
748-
attack, so a higher value may be desirable when non negligible amounts are at
748+
attack, so a higher value may be desirable when non-negligible amounts are at
749749
risk. The grace period `G` can be low (1 or 2), as nodes are required to timeout
750750
or fulfill as soon as possible; but if `G` is too low it increases the risk of
751751
unnecessary channel closure due to networking delays.
@@ -767,7 +767,7 @@ There are four values that need be derived:
767767
4. the minimum `cltv_expiry` accepted for terminal payments: the
768768
worst case for the terminal node C is `2R+G+S` blocks (as, again, steps
769769
1-3 above don't apply). The default in [BOLT #11](11-payment-encoding.md) is
770-
9, which is less conservative than the 18 that this calculation suggests.
770+
18, which matches this calculation.
771771

772772
#### Requirements
773773

11-payment-encoding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Currently defined tagged fields are:
142142
* `n` (19): `data_length` 53. 33-byte public key of the payee node
143143
* `h` (23): `data_length` 52. 256-bit description of purpose of payment (SHA256). This is used to commit to an associated description that is over 639 bytes, but the transport mechanism for the description in that case is transport specific and not defined here.
144144
* `x` (6): `data_length` variable. `expiry` time in seconds (big-endian). Default is 3600 (1 hour) if not specified.
145-
* `c` (24): `data_length` variable. `min_final_cltv_expiry` to use for the last HTLC in the route. Default is 9 if not specified.
145+
* `c` (24): `data_length` variable. `min_final_cltv_expiry` to use for the last HTLC in the route. Default is 18 if not specified.
146146
* `f` (9): `data_length` variable, depending on version. Fallback on-chain address: for Bitcoin, this starts with a 5-bit `version` and contains a witness program or P2PKH or P2SH address.
147147
* `r` (3): `data_length` variable. One or more entries containing extra routing information for a private route; there may be more than one `r` field
148148
* `pubkey` (264 bits)

0 commit comments

Comments
 (0)