From 77053564e66f83d47813d82de39fa3eef1824b1a Mon Sep 17 00:00:00 2001 From: Antoine Riard Date: Thu, 8 Dec 2022 21:48:19 -0500 Subject: [PATCH] Add context for option_anchors_zero_fee_htlc_tx --- 02-peer-protocol.md | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/02-peer-protocol.md b/02-peer-protocol.md index 45ab4a74c..4d057e682 100644 --- a/02-peer-protocol.md +++ b/02-peer-protocol.md @@ -1165,13 +1165,14 @@ The node _not responsible_ for paying the Bitcoin fee: - MUST NOT send `update_fee`. A sending node: - - if the `update_fee` increases `feerate_per_kw`: - - if the dust balance of the remote transaction at the updated `feerate_per_kw` is greater than `max_dust_htlc_exposure_msat`: - - MAY NOT send `update_fee` - - MAY fail the channel - - if the dust balance of the local transaction at the updated `feerate_per_kw` is greater than `max_dust_htlc_exposure_msat`: - - MAY NOT send `update_fee` - - MAY fail the channel + - if `option_anchors_zero_fee_htlc_tx` was not negotiated: + - if the `update_fee` increases `feerate_per_kw`: + - if the dust balance of the remote transaction at the updated `feerate_per_kw` is greater than `max_dust_htlc_exposure_msat`: + - MAY NOT send `update_fee` + - MAY fail the channel + - if the dust balance of the local transaction at the updated `feerate_per_kw` is greater than `max_dust_htlc_exposure_msat`: + - MAY NOT send `update_fee` + - MAY fail the channel A receiving node: - if the `update_fee` is too low for timely processing, OR is unreasonably large: @@ -1182,11 +1183,12 @@ A receiving node: current commitment transaction: - SHOULD fail the channel, - but MAY delay this check until the `update_fee` is committed. - - if the `update_fee` increases `feerate_per_kw`: - - if the dust balance of the remote transaction at the updated `feerate_per_kw` is greater then `max_dust_htlc_exposure_msat`: - - MAY fail the channel - - if the dust balance of the local transaction at the updated `feerate_per_kw` is greater than `max_dust_htlc_exposure_msat`: - - MAY fail the channel + - if `option_anchors_zero_fee_htlc_tx` was not negotiated: + - if the `update_fee` increases `feerate_per_kw`: + - if the dust balance of the remote transaction at the updated `feerate_per_kw` is greater then `max_dust_htlc_exposure_msat`: + - MAY fail the channel + - if the dust balance of the local transaction at the updated `feerate_per_kw` is greater than `max_dust_htlc_exposure_msat`: + - MAY fail the channel #### Rationale