Browse Source

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 <rusty@rustcorp.com.au>
plugin-1
Rusty Russell 6 years ago
parent
commit
40943c9867
  1. 2
      Makefile
  2. 2
      lightningd/peer_htlcs.c
  3. 2
      wire/gen_onion_wire_csv

2
Makefile

@ -9,7 +9,7 @@ CCANDIR := ccan
# Where we keep the BOLT RFCs
BOLTDIR := ../lightning-rfc/
BOLTVERSION := 8516beb2c4fe6fc19bb4b1824b1635ae13805f49
BOLTVERSION := bca814e270dcbee2fea51c0a26ca99efef261f2b
-include config.vars

2
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.
*/

2
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

Loading…
Cancel
Save