Skip to content

Commit ef1fff4

Browse files
committed
f use OutputSpendingFee
1 parent 200d961 commit ef1fff4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lightning/src/chain/chaininterface.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ pub enum ConfirmationTarget {
6262
/// on-chain (it doesn't have to happen in the next few blocks!), but we shouldn't risk too low
6363
/// a fee - this should be a relatively high priority feerate.
6464
UrgentOnChainSweep,
65-
/// We have some funds available on chain which we need to spend but have no particular urgency
66-
/// to do so.
67-
NonUrgentOnChainSweep,
6865
/// This is the lowest feerate we will allow our channel counterparty to have in an anchor
6966
/// channel in order to close the channel if a channel party goes away.
7067
///
@@ -135,8 +132,11 @@ pub enum ConfirmationTarget {
135132
///
136133
/// [`ChannelManager::close_channel_with_feerate_and_script`]: crate::ln::channelmanager::ChannelManager::close_channel_with_feerate_and_script
137134
ChannelCloseMinimum,
138-
/// The feerate [`OutputSweeper`] will use on transactions spending
139-
/// [`SpendableOutputDescriptor`]s after a channel closure.
135+
/// The feerate used to claim on-chain funds when there is no particular urgency to do so.
136+
///
137+
/// It is used to get commitment transactions without any HTLCs confirmed in [`ChannelMonitor`]
138+
/// and by [`OutputSweeper`] on transactions spending [`SpendableOutputDescriptor`]s after a
139+
/// channel closure.
140140
///
141141
/// Generally spending these outputs is safe as long as they eventually confirm, so a value
142142
/// (slightly above) the mempool minimum should suffice. However, as this value will influence

lightning/src/chain/channelmonitor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2707,7 +2707,7 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitorImpl<Signer> {
27072707
return ConfirmationTarget::UrgentOnChainSweep;
27082708
}
27092709
}
2710-
ConfirmationTarget::NonUrgentOnChainSweep
2710+
ConfirmationTarget::OutputSpendingFee
27112711
}
27122712

27132713
/// Inserts a revocation secret into this channel monitor. Prunes old preimages if neither

0 commit comments

Comments
 (0)