Skip to content

Commit

Permalink
doc: update to BOLT 50b2df24a27879e8329712c275db78876fd022fe "Update …
Browse files Browse the repository at this point in the history
…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 <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Sep 20, 2023
1 parent 0d70daa commit 821d5f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions lightningd/peer_htlcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 821d5f4

Please sign in to comment.