File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2766,14 +2766,14 @@ impl<Signer: WriteableEcdsaChannelSigner> Channel<Signer> {
2766
2766
self . holder_dust_limit_satoshis + dust_buffer_feerate * htlc_timeout_tx_weight ( false ) / 1000 )
2767
2767
} ;
2768
2768
let on_counterparty_dust_htlc_exposure_msat = inbound_stats. on_counterparty_tx_dust_exposure_msat + outbound_stats. on_counterparty_tx_dust_exposure_msat ;
2769
- if on_counterparty_dust_htlc_exposure_msat + htlc_success_dust_limit * 1000 - 1 > self . get_max_dust_htlc_exposure_msat ( ) {
2769
+ if on_counterparty_dust_htlc_exposure_msat as i64 + htlc_success_dust_limit as i64 * 1000 - 1 > self . get_max_dust_htlc_exposure_msat ( ) as i64 {
2770
2770
remaining_msat_below_dust_exposure_limit =
2771
2771
Some ( self . get_max_dust_htlc_exposure_msat ( ) . saturating_sub ( on_counterparty_dust_htlc_exposure_msat) ) ;
2772
2772
dust_exposure_dust_limit_msat = cmp:: max ( dust_exposure_dust_limit_msat, htlc_success_dust_limit * 1000 ) ;
2773
2773
}
2774
2774
2775
2775
let on_holder_dust_htlc_exposure_msat = inbound_stats. on_holder_tx_dust_exposure_msat + outbound_stats. on_holder_tx_dust_exposure_msat ;
2776
- if on_holder_dust_htlc_exposure_msat + htlc_timeout_dust_limit * 1000 - 1 > self . get_max_dust_htlc_exposure_msat ( ) {
2776
+ if on_holder_dust_htlc_exposure_msat as i64 + htlc_timeout_dust_limit as i64 * 1000 - 1 > self . get_max_dust_htlc_exposure_msat ( ) as i64 {
2777
2777
remaining_msat_below_dust_exposure_limit = Some ( cmp:: max (
2778
2778
remaining_msat_below_dust_exposure_limit. unwrap_or ( 0 ) ,
2779
2779
self . get_max_dust_htlc_exposure_msat ( ) . saturating_sub ( on_holder_dust_htlc_exposure_msat) ) ) ;
You can’t perform that action at this time.
0 commit comments