Skip to content

Commit fbd19ef

Browse files
Clarify computation of final outgoing_expiry in route blinding (#1069)
BOLT 12 invoices do not include a max_cltv_expiry field, so it's good to clarify how senders can compute the final outgoing cltv expiry.
1 parent 7dda8f8 commit fbd19ef

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

proposals/route-blinding.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ transmits the following information to the sender (most likely via an invoice):
270270
* `fee_proportional_millionths`: 1001
271271
* `htlc_minimum_msat`: 1000
272272
* `cltv_expiry_delta`: 288
273-
* `max_cltv_expiry`: 1200
273+
* `max_cltv_expiry`: 1200 (may be conveyed via invoice expiration, assuming 10 minute blocks)
274274
* `allowed_features`: empty
275275
* Encrypted data for blinded nodes:
276276
* `encrypted_payload(alice)`:
@@ -308,8 +308,11 @@ Erin uses the aggregated route relay parameters to compute how much should be se
308308

309309
* `amount = 100000 + 201 + (1001 * 100000 + 1000000 - 1) / 1000000 = 100302 msat`
310310

311-
Erin chooses a final expiry of 1100, which is below Alice's `max_cltv_expiry`, and computes the
312-
expiry that should be sent to Carol:
311+
Erin chooses a final expiry of 1100, which is below Alice's `max_cltv_expiry`. This value may be
312+
chosen by adding a random cltv offset to the current block height as described in
313+
[Recommendations for Routing](../07-routing-gossip.md#recommendations-for-routing).
314+
315+
Erin computes the expiry that should be sent to Carol:
313316

314317
* `expiry = 1100 + 288 = 1388`
315318

0 commit comments

Comments
 (0)