Skip to content

Commit

Permalink
BOLT: update to clarify HTLC tx amount calculation.
Browse files Browse the repository at this point in the history
Simple quote update.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Sep 14, 2022
1 parent 99feb91 commit ee46461
Show file tree
Hide file tree
Showing 2 changed files with 4 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 := 47d325c6ac50587d9974651a7b2a692f85c9a068
DEFAULT_BOLTVERSION := f32c6ddb5f11b431c9bb4f501cdec604172a90de
# Can be overridden on cmdline.
BOLTVERSION := $(DEFAULT_BOLTVERSION)

Expand Down
5 changes: 3 additions & 2 deletions common/htlc_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ static struct bitcoin_tx *htlc_tx(const tal_t *ctx,

/* BOLT #3:
* * txout count: 1
* * `txout[0]` amount: the HTLC amount minus fees
* (see [Fee Calculation](#fee-calculation))
* * `txout[0]` amount: the HTLC `amount_msat` divided by 1000
* (rounding down) minus fees in satoshis (see
* [Fee Calculation](#fee-calculation))
* * `txout[0]` script: version-0 P2WSH with witness script as shown
* below
*/
Expand Down

0 comments on commit ee46461

Please sign in to comment.