You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ln: return Option for dust_exposure_limiting_feerate
This fee rate is currently used in two scenarios:
- To count any fees above what we consider to be a sane estimate towards
our dust exposure.
- To get a maximum dust exposure (when using
MaxDustHTLCExposure::FeeEstimator strategy).
When we have zero fee commitments:
- Commitments are zero fee, so we don't need to count fees towards dust
exposure.
- The amount of dust we have is not dependent on fees, as everything is
zero fee.
- We still want to limit our total dust exposure.
This commit updates get_dust_exposure_limiting_feerate to allow a None
value to prepare for support for zero fee commitments. This clearly
allows us to indicate when we don't care about fee rates for dust
considerations.
In get_max_dust_htlc_exposure_msat, we simply hardcode a value of
1 sat/vbyte if a feerate dependent strategy is being used.
0 commit comments