From b4132ff24025742ad8e175d52b68380520e9f0b7 Mon Sep 17 00:00:00 2001 From: t-bast Date: Tue, 21 Jul 2020 09:15:34 +0200 Subject: [PATCH] fixup! Update Bolt 11 default recommendation --- 11-payment-encoding.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/11-payment-encoding.md b/11-payment-encoding.md index 137cbbb1b..c3ddd2f1f 100644 --- a/11-payment-encoding.md +++ b/11-payment-encoding.md @@ -172,11 +172,10 @@ A writer: - MAY include one `x` field. - if `x` is included: - SHOULD use the minimum `data_length` possible. - - MAY include one `c` field. + - MUST include one `c` field (`min_final_cltv_expiry`). - MUST set `c` to the minimum `cltv_expiry` it will accept for the last HTLC in the route. - - if `c` is included: - - SHOULD use the minimum `data_length` possible. + - SHOULD use the minimum `data_length` possible. - MAY include one `n` field. (Otherwise performing signature recovery is required) - MUST set `n` to the public key used to create the `signature`. - MAY include one or more `f` fields. @@ -214,6 +213,8 @@ A reader: - MUST use the `n` field to validate the signature instead of performing signature recovery. - if there is a valid `s` field: - MUST use that as [`payment_secret`](04-onion-routing.md#tlv_payload-payload-format) + - if the `c` field (`min_final_cltv_expiry`) is not provided: + - MUST use an expiry delta of at least 18 when making the payment ### Rationale