mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
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:
2
Makefile
2
Makefile
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user