Skip to content

Commit 11e07c7

Browse files
committed
Add ConfirmationTarget::OutputSpendingFee
1 parent d6a090f commit 11e07c7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lightning/src/chain/chaininterface.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,17 @@ pub enum ConfirmationTarget {
124124
///
125125
/// [`ChannelManager::close_channel_with_feerate_and_script`]: crate::ln::channelmanager::ChannelManager::close_channel_with_feerate_and_script
126126
ChannelCloseMinimum,
127+
/// The feerate [`OutputSweeper`] will use on transactions spending
128+
/// [`SpendableOutputDescriptor`]s after a channel closure.
129+
///
130+
/// Generally spending these outputs is safe as long as they eventually confirm, so a value
131+
/// (slightly above) the mempool minimum should suffice. However, as this value will influence
132+
/// how long funds will be unavailable after channel closure, implementors might want to choose
133+
/// a higher feerate to have user regain control over their funds faster.
134+
///
135+
/// [`OutputSweeper`]: crate::util::sweep::OutputSweeper
136+
/// [`SpendableOutputDescriptor`]: crate::sign::SpendableOutputDescriptor
137+
OutputSpendingFee,
127138
}
128139

129140
/// A trait which should be implemented to provide feerate information on a number of time

0 commit comments

Comments
 (0)