BOLT: update to clarify HTLC tx amount calculation.

Simple quote update.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2022-09-24 09:07:37 +09:30
parent a1f62ba0e7
commit f53155d93b
2 changed files with 4 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ CCANDIR := ccan
# Where we keep the BOLT RFCs # Where we keep the BOLT RFCs
BOLTDIR := ../bolts/ BOLTDIR := ../bolts/
DEFAULT_BOLTVERSION := 47d325c6ac50587d9974651a7b2a692f85c9a068 DEFAULT_BOLTVERSION := f32c6ddb5f11b431c9bb4f501cdec604172a90de
# Can be overridden on cmdline. # Can be overridden on cmdline.
BOLTVERSION := $(DEFAULT_BOLTVERSION) BOLTVERSION := $(DEFAULT_BOLTVERSION)

View File

@@ -52,8 +52,9 @@ static struct bitcoin_tx *htlc_tx(const tal_t *ctx,
/* BOLT #3: /* BOLT #3:
* * txout count: 1 * * txout count: 1
* * `txout[0]` amount: the HTLC amount minus fees * * `txout[0]` amount: the HTLC `amount_msat` divided by 1000
* (see [Fee Calculation](#fee-calculation)) * (rounding down) minus fees in satoshis (see
* [Fee Calculation](#fee-calculation))
* * `txout[0]` script: version-0 P2WSH with witness script as shown * * `txout[0]` script: version-0 P2WSH with witness script as shown
* below * below
*/ */