Skip to content

Commit 28ab4e3

Browse files
committed
f rename max fee variant
1 parent fe6f1e8 commit 28ab4e3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lightning/src/chain/chaininterface.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ pub trait BroadcasterInterface {
4949
/// estimation.
5050
#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
5151
pub enum ConfirmationTarget {
52-
/// The most conservative (i.e. highest) feerate estimate available.
52+
/// The most aggressive (i.e. highest) feerate estimate available.
5353
///
5454
/// This is use to sanity-check our counterparty's feerates and should be as conservative as
5555
/// possible to ensure that we don't confuse a peer using a very conservative estimator for one
5656
/// trying to burn channel balance to dust.
57-
MostConservativeEstimate,
57+
MaximumFeeEstimate,
5858
/// We have some funds available on chain which we need to spend prior to some expiry time at
5959
/// which point our counterparty may be able to steal them. Generally we have in the high tens
6060
/// to low hundreds of blocks to get our transaction on-chain, but we shouldn't risk too low a

lightning/src/ln/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2442,7 +2442,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
24422442
fn get_dust_exposure_limiting_feerate<F: Deref>(&self,
24432443
fee_estimator: &LowerBoundedFeeEstimator<F>,
24442444
) -> u32 where F::Target: FeeEstimator {
2445-
fee_estimator.bounded_sat_per_1000_weight(ConfirmationTarget::MostConservativeEstimate)
2445+
fee_estimator.bounded_sat_per_1000_weight(ConfirmationTarget::MaximumFeeEstimate)
24462446
}
24472447

24482448
pub fn get_max_dust_htlc_exposure_msat(&self, limiting_feerate_sat_per_kw: u32) -> u64 {

lightning/src/util/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ pub enum MaxDustHTLCExposure {
382382
/// to this maximum the channel may be unable to send/receive HTLCs between the maximum dust
383383
/// exposure and the new minimum value for HTLCs to be economically viable to claim.
384384
FixedLimitMsat(u64),
385-
/// This sets a multiplier on the [`ConfirmationTarget::MostConservativeEstimate`] feerate (in
385+
/// This sets a multiplier on the [`ConfirmationTarget::MaximumFeeEstimate`] feerate (in
386386
/// sats/KW) to determine the maximum allowed dust exposure. If this variant is used then the
387387
/// maximum dust exposure in millisatoshis is calculated as:
388388
/// `feerate_per_kw * value`. For example, with our default value
@@ -407,7 +407,7 @@ pub enum MaxDustHTLCExposure {
407407
/// by default this will be set to a [`Self::FixedLimitMsat`] of 5,000,000 msat.
408408
///
409409
/// [`FeeEstimator`]: crate::chain::chaininterface::FeeEstimator
410-
/// [`ConfirmationTarget::MostConservativeEstimate`]: crate::chain::chaininterface::ConfirmationTarget::MostConservativeEstimate
410+
/// [`ConfirmationTarget::MaximumFeeEstimate`]: crate::chain::chaininterface::ConfirmationTarget::MaximumFeeEstimate
411411
FeeRateMultiplier(u64),
412412
}
413413

0 commit comments

Comments
 (0)