]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Add `ConfirmationTarget::OutputSpendingFee`
authorElias Rohrer <dev@tnull.de>
Tue, 16 Apr 2024 11:41:57 +0000 (13:41 +0200)
committerElias Rohrer <dev@tnull.de>
Thu, 18 Apr 2024 14:20:02 +0000 (16:20 +0200)
fuzz/src/chanmon_consistency.rs
lightning/src/chain/chaininterface.rs

index 36e7cea8a2215e1414af4ef0f46a082401732c03..b3cf867d6e330d5e684c78f2406c815d0a284a04 100644 (file)
@@ -84,7 +84,7 @@ impl FeeEstimator for FuzzEstimator {
                // Background feerate which is <= the minimum Normal feerate.
                match conf_target {
                        ConfirmationTarget::OnChainSweep => MAX_FEE,
-                       ConfirmationTarget::ChannelCloseMinimum|ConfirmationTarget::AnchorChannelFee|ConfirmationTarget::MinAllowedAnchorChannelRemoteFee|ConfirmationTarget::MinAllowedNonAnchorChannelRemoteFee => 253,
+                       ConfirmationTarget::ChannelCloseMinimum|ConfirmationTarget::AnchorChannelFee|ConfirmationTarget::MinAllowedAnchorChannelRemoteFee|ConfirmationTarget::MinAllowedNonAnchorChannelRemoteFee|ConfirmationTarget::OutputSpendingFee => 253,
                        ConfirmationTarget::NonAnchorChannelFee => cmp::min(self.ret_val.load(atomic::Ordering::Acquire), MAX_FEE),
                }
        }
index 2bf6d6130e1123eef41a77fd3e5ffd1e5e3b72be..68dea58dc0080d1fce61685d6d3d19c8d2b56efc 100644 (file)
@@ -124,6 +124,8 @@ pub enum ConfirmationTarget {
        ///
        /// [`ChannelManager::close_channel_with_feerate_and_script`]: crate::ln::channelmanager::ChannelManager::close_channel_with_feerate_and_script
        ChannelCloseMinimum,
+       /// XXX
+       OutputSpendingFee,
 }
 
 /// A trait which should be implemented to provide feerate information on a number of time