Cast weights to u64 to support the new rust-bitcoin api
[rust-lightning] / src / ln / channel.rs
index 04a65b361e3cf8cfdbbf3fab118ecc8985ed6b53..c1eaad02384793a1770a622790df1c90461324ae 100644 (file)
@@ -2784,7 +2784,7 @@ impl Channel {
                        }
                }
 
-               let proposed_sat_per_kw = msg.fee_satoshis * 1000 / closing_tx.get_weight();
+               let proposed_sat_per_kw = msg.fee_satoshis * 1000 / closing_tx.get_weight() as u64;
                if self.channel_outbound {
                        let our_max_feerate = fee_estimator.get_est_sat_per_1000_weight(ConfirmationTarget::Normal);
                        if proposed_sat_per_kw > our_max_feerate {