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>
This commit is contained in:
Rusty Russell
2018-10-26 16:31:30 +10:30
parent c236361efd
commit 40943c9867
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

@@ -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