Skip to content

Commit d7668e1

Browse files
committed
Remove a redundant sentence in ConfirmationTarget docs
... and correct direction which causes force-closure in another sentence.
1 parent 803fb55 commit d7668e1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lightning/src/chain/chaininterface.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,12 @@ pub enum ConfirmationTarget {
7171
/// [`ChannelConfig::max_dust_htlc_exposure`]: crate::util::config::ChannelConfig::max_dust_htlc_exposure
7272
MaxAllowedNonAnchorChannelRemoteFee,
7373
/// This is the lowest feerate we will allow our channel counterparty to have in an anchor
74-
/// channel in order to close the channel if a channel party goes away. Because our counterparty
75-
/// must ensure they can always broadcast the latest state, this value being too high will cause
76-
/// immediate force-closures.
74+
/// channel in order to close the channel if a channel party goes away.
7775
///
7876
/// This needs to be sufficient to get into the mempool when the channel needs to
79-
/// be force-closed. Setting too low may result in force-closures. Because this is for anchor
80-
/// channels, we can always bump the feerate later, the feerate here only needs to suffice to
81-
/// enter the mempool.
77+
/// be force-closed. Setting too high may result in force-closures if our counterparty attempts
78+
/// to use a lower feerate. Because this is for anchor channels, we can always bump the feerate
79+
/// later; the feerate here only needs to be sufficient to enter the mempool.
8280
///
8381
/// A good estimate is the expected mempool minimum at the time of force-closure. Obviously this
8482
/// is not an estimate which is very easy to calculate because we do not know the future. Using

0 commit comments

Comments
 (0)