You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removed requirement to broadcast an outdated commitment transaction (#942)
If a node has to fail a channel but knows that its latest commitment transaction is outdated it should not be required to send it but rather wait for the peer to unilaterally close the channel.
The proposed solution is not so clean because it might produce a deadlock in which two peers assume they have outdated state and send `error` back and forth without actually force closing. Maybe in such a scenario we could create a protocol that mutually closes with split balance?
Also replaced the word use with broadcast as it seems more accurate.
Co-authored-by: t-bast <[email protected]>
Copy file name to clipboardExpand all lines: 05-onchain.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,12 +143,15 @@ A node:
143
143
sufficient fee:
144
144
- SHOULD use this fee to perform a *mutual close*.
145
145
- otherwise:
146
-
- MUST use the *last commitment transaction*, for which it has a
147
-
signature, to perform a *unilateral close*.
148
-
- MUST spend any `to_local_anchor` output, providing sufficient fees as incentive to include the commitment transaction in a block
149
-
Special care must be taken when spending to a third-party, because this re-introduces the vulnerability that was
150
-
addressed by adding the CSV delay to the non-anchor outputs.
151
-
- SHOULD use [replace-by-fee](https://github.com/bitcoin/bips/blob/master/bip-0125.mediawiki) or other mechanism on the spending transaction if it proves insufficient for timely inclusion in a block.
146
+
- if the node knows or assumes its channel state is outdated:
147
+
- MUST NOT broadcast its *last commitment transaction*.
148
+
- otherwise:
149
+
- MUST broadcast the *last commitment transaction*, for which it has a
150
+
signature, to perform a *unilateral close*.
151
+
- MUST spend any `to_local_anchor` output, providing sufficient fees as incentive to include the commitment transaction in a block.
152
+
Special care must be taken when spending to a third-party, because this re-introduces the vulnerability that was
153
+
addressed by adding the CSV delay to the non-anchor outputs.
154
+
- SHOULD use [replace-by-fee](https://github.com/bitcoin/bips/blob/master/bip-0125.mediawiki) or other mechanism on the spending transaction if it proves insufficient for timely inclusion in a block.
0 commit comments