Skip to content

Commit

Permalink
Update for latest bolt version: bca814e270dcbee2fea51c0a26ca99efef261f2b
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rustyrussell committed Oct 28, 2018
1 parent c236361 commit 40943c9
Show file tree
Hide file tree
Showing 3 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 @@ -9,7 +9,7 @@ CCANDIR := ccan

# Where we keep the BOLT RFCs
BOLTDIR := ../lightning-rfc/
BOLTVERSION := 8516beb2c4fe6fc19bb4b1824b1635ae13805f49
BOLTVERSION := bca814e270dcbee2fea51c0a26ca99efef261f2b

-include config.vars

Expand Down
2 changes: 1 addition & 1 deletion lightningd/peer_htlcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion wire/gen_onion_wire_csv
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 40943c9

Please sign in to comment.