From 821d5f48ea237c8a921d2dba31deac38c07b761f Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 12 Sep 2023 10:12:01 +0930 Subject: [PATCH] doc: update to BOLT 50b2df24a27879e8329712c275db78876fd022fe "Update onion errors since we allow overpaying or under-CLTVing" We already do this behaviour, we just didn't adjust comments. Signed-off-by: Rusty Russell --- Makefile | 2 +- lightningd/peer_htlcs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 378fdeb11872..edda401b6ad1 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ CCANDIR := ccan # Where we keep the BOLT RFCs BOLTDIR := ../bolts/ -DEFAULT_BOLTVERSION := 29c14c6e12cbdf33f6b724094c81658a614d2e02 +DEFAULT_BOLTVERSION := 50b2df24a27879e8329712c275db78876fd022fe # Can be overridden on cmdline. BOLTVERSION := $(DEFAULT_BOLTVERSION) diff --git a/lightningd/peer_htlcs.c b/lightningd/peer_htlcs.c index ee04751f0300..a4a3160840ba 100644 --- a/lightningd/peer_htlcs.c +++ b/lightningd/peer_htlcs.c @@ -402,7 +402,7 @@ static void handle_localpay(struct htlc_in *hin, * 2. data: * * [`u64`:`incoming_htlc_amt`] * - * The amount in the HTLC doesn't match the value in the onion. + * The amount in the HTLC is less than the value in the onion. */ failmsg = towire_final_incorrect_htlc_amount(NULL, hin->msat); goto fail; @@ -423,7 +423,7 @@ static void handle_localpay(struct htlc_in *hin, * 2. data: * * [`u32`:`cltv_expiry`] * - * The CLTV expiry in the HTLC doesn't match the value in the onion. + * The CLTV expiry in the HTLC is less than the value in the onion. */ failmsg = towire_final_incorrect_cltv_expiry(NULL, hin->cltv_expiry);