Package org.ldk.structs
Class MaxDustHTLCExposure.FeeRateMultiplier
- java.lang.Object
-
- org.ldk.structs.MaxDustHTLCExposure
-
- org.ldk.structs.MaxDustHTLCExposure.FeeRateMultiplier
-
- Enclosing class:
- MaxDustHTLCExposure
public static final class MaxDustHTLCExposure.FeeRateMultiplier extends MaxDustHTLCExposure
This sets a multiplier on the estimated high priority feerate (sats/KW, as obtained from [`FeeEstimator`]) to determine the maximum allowed dust exposure. If this variant is used then the maximum dust exposure in millisatoshis is calculated as: `high_priority_feerate_per_kw * value`. For example, with our default value `FeeRateMultiplier(5000)`: - For the minimum fee rate of 1 sat/vByte (250 sat/KW, although the minimum defaults to 253 sats/KW for rounding, see [`FeeEstimator`]), the max dust exposure would be 253 * 5000 = 1,265,000 msats. - For a fee rate of 30 sat/vByte (7500 sat/KW), the max dust exposure would be 7500 * 5000 = 37,500,000 msats. This allows the maximum dust exposure to automatically scale with fee rate changes. Note, if you're using a third-party fee estimator, this may leave you more exposed to a fee griefing attack, where your fee estimator may purposely overestimate the fee rate, causing you to accept more dust HTLCs than you would otherwise. This variant is primarily meant to serve pre-anchor channels, as HTLC fees being included on HTLC outputs means your channel may be subject to more dust exposure in the event of increases in fee rate. # Backwards Compatibility This variant only became available in LDK 0.0.116, so if you downgrade to a prior version by default this will be set to a [`Self::FixedLimitMsat`] of 5,000,000 msat. [`FeeEstimator`]: crate::chain::chaininterface::FeeEstimator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ldk.structs.MaxDustHTLCExposure
MaxDustHTLCExposure.FeeRateMultiplier, MaxDustHTLCExposure.FixedLimitMsat
-
-
Field Summary
Fields Modifier and Type Field Description longfee_rate_multiplier
-