Package org.ldk.structs
Class MaxDustHTLCExposure
- java.lang.Object
-
- org.ldk.structs.MaxDustHTLCExposure
-
- Direct Known Subclasses:
MaxDustHTLCExposure.FeeRateMultiplier,MaxDustHTLCExposure.FixedLimitMsat
public class MaxDustHTLCExposure extends Object
Options for how to set the max dust HTLC exposure allowed on a channel. See [`ChannelConfig::max_dust_htlc_exposure`] for details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMaxDustHTLCExposure.FeeRateMultiplierThis sets a multiplier on the estimated high priority feerate (sats/KW, as obtained from [`FeeEstimator`]) to determine the maximum allowed dust exposure.static classMaxDustHTLCExposure.FixedLimitMsatThis sets a fixed limit on the total dust exposure in millisatoshis.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MaxDustHTLCExposureclone()Creates a copy of the MaxDustHTLCExposurebooleaneq(MaxDustHTLCExposure b)Checks if two MaxDustHTLCExposures contain equal inner contents.booleanequals(Object o)static MaxDustHTLCExposurefee_rate_multiplier(long a)Utility method to constructs a new FeeRateMultiplier-variant MaxDustHTLCExposureprotected voidfinalize()static MaxDustHTLCExposurefixed_limit_msat(long a)Utility method to constructs a new FixedLimitMsat-variant MaxDustHTLCExposurestatic Result_MaxDustHTLCExposureDecodeErrorZread(byte[] ser)Read a MaxDustHTLCExposure from a byte array, created by MaxDustHTLCExposure_writebyte[]write()Serialize the MaxDustHTLCExposure object into a byte array which can be read by MaxDustHTLCExposure_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
clone
public MaxDustHTLCExposure clone()
Creates a copy of the MaxDustHTLCExposure
-
fixed_limit_msat
public static MaxDustHTLCExposure fixed_limit_msat(long a)
Utility method to constructs a new FixedLimitMsat-variant MaxDustHTLCExposure
-
fee_rate_multiplier
public static MaxDustHTLCExposure fee_rate_multiplier(long a)
Utility method to constructs a new FeeRateMultiplier-variant MaxDustHTLCExposure
-
eq
public boolean eq(MaxDustHTLCExposure b)
Checks if two MaxDustHTLCExposures contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
-
write
public byte[] write()
Serialize the MaxDustHTLCExposure object into a byte array which can be read by MaxDustHTLCExposure_read
-
read
public static Result_MaxDustHTLCExposureDecodeErrorZ read(byte[] ser)
Read a MaxDustHTLCExposure from a byte array, created by MaxDustHTLCExposure_write
-
-