mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
Makefile: update bolt version to include option_anchors_zero_fee_htlc_tx.
This touches a lot of text, mainly to change "if `option_anchor_outputs`" to "if `option_anchors`" Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -470,13 +470,17 @@ static bool grind_htlc_tx_fee(struct amount_sat *fee,
|
||||
/* BOLT #3:
|
||||
*
|
||||
* The fee for an HTLC-timeout transaction:
|
||||
* - MUST BE calculated to match:
|
||||
* - If `option_anchors_zero_fee_htlc_tx` applies:
|
||||
* 1. MUST BE 0.
|
||||
* - Otherwise, MUST BE calculated to match:
|
||||
* 1. Multiply `feerate_per_kw` by 663
|
||||
* (666 if `option_anchor_outputs` applies)
|
||||
* and divide by 1000 (rounding down).
|
||||
*
|
||||
* The fee for an HTLC-success transaction:
|
||||
* - MUST BE calculated to match:
|
||||
* - If `option_anchors_zero_fee_htlc_tx` applies:
|
||||
* 1. MUST BE 0.
|
||||
* - MUST BE calculated to match:
|
||||
* 1. Multiply `feerate_per_kw` by 703
|
||||
* (706 if `option_anchor_outputs` applies)
|
||||
* and divide by 1000 (rounding down).
|
||||
@@ -517,7 +521,9 @@ static bool set_htlc_timeout_fee(struct bitcoin_tx *tx,
|
||||
/* BOLT #3:
|
||||
*
|
||||
* The fee for an HTLC-timeout transaction:
|
||||
* - MUST BE calculated to match:
|
||||
* - If `option_anchors_zero_fee_htlc_tx` applies:
|
||||
* 1. MUST BE 0.
|
||||
* - Otherwise, MUST BE calculated to match:
|
||||
* 1. Multiply `feerate_per_kw` by 663 (666 if `option_anchor_outputs`
|
||||
* applies) and divide by 1000 (rounding down).
|
||||
*/
|
||||
@@ -564,6 +570,8 @@ static void set_htlc_success_fee(struct bitcoin_tx *tx,
|
||||
/* BOLT #3:
|
||||
*
|
||||
* The fee for an HTLC-success transaction:
|
||||
* - If `option_anchors_zero_fee_htlc_tx` applies:
|
||||
* 1. MUST BE 0.
|
||||
* - MUST BE calculated to match:
|
||||
* 1. Multiply `feerate_per_kw` by 703 (706 if `option_anchor_outputs`
|
||||
* applies) and divide by 1000 (rounding down).
|
||||
@@ -2566,7 +2574,7 @@ static u8 *scriptpubkey_to_remote(const tal_t *ctx,
|
||||
*
|
||||
* #### `to_remote` Output
|
||||
*
|
||||
* If `option_anchor_outputs` applies to the commitment
|
||||
* If `option_anchors` applies to the commitment
|
||||
* transaction, the `to_remote` output is encumbered by a one
|
||||
* block csv lock.
|
||||
* <remote_pubkey> OP_CHECKSIGVERIFY 1 OP_CHECKSEQUENCEVERIFY
|
||||
|
||||
Reference in New Issue
Block a user