Skip to content

Commit c35e12e

Browse files
committed
feature: define option_zero_fee_second_stage
1 parent d0c8385 commit c35e12e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

03-transactions.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,10 +417,14 @@ Note the reference to the "base fee" for a commitment transaction in the require
417417
#### Requirements
418418

419419
The fee for an HTLC-timeout transaction:
420-
- MUST BE calculated to match:
420+
- If `option_zero_fee_second_stage` applies:
421+
1. MUST BE 0.
422+
- Otherwise, MUST BE calculated to match:
421423
1. Multiply `feerate_per_kw` by 663 (666 if `option_anchor_outputs` applies) and divide by 1000 (rounding down).
422424

423425
The fee for an HTLC-success transaction:
426+
- If `option_zero_fee_second_stage` applies:
427+
1. MUST BE 0.
424428
- MUST BE calculated to match:
425429
1. Multiply `feerate_per_kw` by 703 (706 if `option_anchor_outputs` applies) and divide by 1000 (rounding down).
426430

09-features.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ The Context column decodes as follows:
3939
| 16/17 | `basic_mpp` | Node can receive basic multi-part payments | IN9 | `payment_secret` | [BOLT #4][bolt04-mpp] |
4040
| 18/19 | `option_support_large_channel` | Can create large channels | IN | | [BOLT #2](02-peer-protocol.md#the-open_channel-message) |
4141
| 20/21 | `option_anchor_outputs` | Anchor outputs | IN | `option_static_remotekey` | [BOLT #3](03-transactions.md) |
42+
| 22/23 | `option_zero_fee_second_stage` | Anchor commitment type with zero fee second-stage HTLC txs| IN | `option_anchor_outputs` | [BOLT #3](03-transactions.md) |
4243

4344
## Requirements
4445

0 commit comments

Comments
 (0)