From 40943c98673484ec960d424321328155fea483ff Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 26 Oct 2018 16:31:30 +1030 Subject: [PATCH] Update for latest bolt version: bca814e270dcbee2fea51c0a26ca99efef261f2b The only change is that the final_incorrect_htlc_amount field is now 64 bit. Since no implementation yet parses that field, we just updated it quietly in the spec. Signed-off-by: Rusty Russell --- Makefile | 2 +- lightningd/peer_htlcs.c | 2 +- wire/gen_onion_wire_csv | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 11f6a2e60..80669e4c4 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ CCANDIR := ccan # Where we keep the BOLT RFCs BOLTDIR := ../lightning-rfc/ -BOLTVERSION := 8516beb2c4fe6fc19bb4b1824b1635ae13805f49 +BOLTVERSION := bca814e270dcbee2fea51c0a26ca99efef261f2b -include config.vars diff --git a/lightningd/peer_htlcs.c b/lightningd/peer_htlcs.c index 587d56425..91f920209 100644 --- a/lightningd/peer_htlcs.c +++ b/lightningd/peer_htlcs.c @@ -257,7 +257,7 @@ static void handle_localpay(struct htlc_in *hin, * * 1. type: 19 (`final_incorrect_htlc_amount`) * 2. data: - * * [`4`:`incoming_htlc_amt`] + * * [`8`:`incoming_htlc_amt`] * * The amount in the HTLC doesn't match the value in the onion. */ diff --git a/wire/gen_onion_wire_csv b/wire/gen_onion_wire_csv index bccb2e647..8523c6fc5 100644 --- a/wire/gen_onion_wire_csv +++ b/wire/gen_onion_wire_csv @@ -36,6 +36,6 @@ final_expiry_too_soon,17 final_incorrect_cltv_expiry,18 final_incorrect_cltv_expiry,0,cltv_expiry,4 final_incorrect_htlc_amount,19 -final_incorrect_htlc_amount,0,incoming_htlc_amt,4 +final_incorrect_htlc_amount,0,incoming_htlc_amt,8 channel_disabled,UPDATE|20 expiry_too_far,21