File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ impl FeeEstimator for FuzzEstimator {
84
84
// Background feerate which is <= the minimum Normal feerate.
85
85
match conf_target {
86
86
ConfirmationTarget :: OnChainSweep => MAX_FEE ,
87
- ConfirmationTarget :: ChannelCloseMinimum |ConfirmationTarget :: AnchorChannelFee |ConfirmationTarget :: MinAllowedAnchorChannelRemoteFee |ConfirmationTarget :: MinAllowedNonAnchorChannelRemoteFee => 253 ,
87
+ ConfirmationTarget :: ChannelCloseMinimum |ConfirmationTarget :: AnchorChannelFee |ConfirmationTarget :: MinAllowedAnchorChannelRemoteFee |ConfirmationTarget :: MinAllowedNonAnchorChannelRemoteFee | ConfirmationTarget :: OutputSpendingFee => 253 ,
88
88
ConfirmationTarget :: NonAnchorChannelFee => cmp:: min ( self . ret_val . load ( atomic:: Ordering :: Acquire ) , MAX_FEE ) ,
89
89
}
90
90
}
Original file line number Diff line number Diff line change @@ -124,6 +124,17 @@ pub enum ConfirmationTarget {
124
124
///
125
125
/// [`ChannelManager::close_channel_with_feerate_and_script`]: crate::ln::channelmanager::ChannelManager::close_channel_with_feerate_and_script
126
126
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, [`FeeEstimator`] implementors
133
+ /// might want to choose a higher feerate to regain control over funds faster.
134
+ ///
135
+ /// [`OutputSweeper`]: crate::util::sweep::OutputSweeper
136
+ /// [`SpendableOutputDescriptor`]: crate::sign::SpendableOutputDescriptor
137
+ OutputSpendingFee ,
127
138
}
128
139
129
140
/// A trait which should be implemented to provide feerate information on a number of time
You can’t perform that action at this time.
0 commit comments