Skip to content

Commit 7705356

Browse files
ariardariard
authored andcommitted
Add context for option_anchors_zero_fee_htlc_tx
1 parent 5fb0b5c commit 7705356

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

02-peer-protocol.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,13 +1165,14 @@ The node _not responsible_ for paying the Bitcoin fee:
11651165
- MUST NOT send `update_fee`.
11661166

11671167
A sending node:
1168-
- if the `update_fee` increases `feerate_per_kw`:
1169-
- if the dust balance of the remote transaction at the updated `feerate_per_kw` is greater than `max_dust_htlc_exposure_msat`:
1170-
- MAY NOT send `update_fee`
1171-
- MAY fail the channel
1172-
- if the dust balance of the local transaction at the updated `feerate_per_kw` is greater than `max_dust_htlc_exposure_msat`:
1173-
- MAY NOT send `update_fee`
1174-
- MAY fail the channel
1168+
- if `option_anchors_zero_fee_htlc_tx` was not negotiated:
1169+
- if the `update_fee` increases `feerate_per_kw`:
1170+
- if the dust balance of the remote transaction at the updated `feerate_per_kw` is greater than `max_dust_htlc_exposure_msat`:
1171+
- MAY NOT send `update_fee`
1172+
- MAY fail the channel
1173+
- if the dust balance of the local transaction at the updated `feerate_per_kw` is greater than `max_dust_htlc_exposure_msat`:
1174+
- MAY NOT send `update_fee`
1175+
- MAY fail the channel
11751176

11761177
A receiving node:
11771178
- if the `update_fee` is too low for timely processing, OR is unreasonably large:
@@ -1182,11 +1183,12 @@ A receiving node:
11821183
current commitment transaction:
11831184
- SHOULD fail the channel,
11841185
- but MAY delay this check until the `update_fee` is committed.
1185-
- if the `update_fee` increases `feerate_per_kw`:
1186-
- if the dust balance of the remote transaction at the updated `feerate_per_kw` is greater then `max_dust_htlc_exposure_msat`:
1187-
- MAY fail the channel
1188-
- if the dust balance of the local transaction at the updated `feerate_per_kw` is greater than `max_dust_htlc_exposure_msat`:
1189-
- MAY fail the channel
1186+
- if `option_anchors_zero_fee_htlc_tx` was not negotiated:
1187+
- if the `update_fee` increases `feerate_per_kw`:
1188+
- if the dust balance of the remote transaction at the updated `feerate_per_kw` is greater then `max_dust_htlc_exposure_msat`:
1189+
- MAY fail the channel
1190+
- if the dust balance of the local transaction at the updated `feerate_per_kw` is greater than `max_dust_htlc_exposure_msat`:
1191+
- MAY fail the channel
11901192

11911193
#### Rationale
11921194

0 commit comments

Comments
 (0)