We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 381ff40 commit 85f406aCopy full SHA for 85f406a
lightning/src/events/bump_transaction.rs
@@ -884,11 +884,8 @@ where
884
let expected_signed_tx_weight = unsigned_tx_weight + total_satisfaction_weight;
885
// Our estimate should be within a 1% error margin of the actual weight and we should
886
// never underestimate.
887
- assert!(
888
- expected_signed_tx_weight >= signed_tx_weight
889
- && expected_signed_tx_weight - (expected_signed_tx_weight / 100)
890
- <= signed_tx_weight
891
- );
+ assert!(expected_signed_tx_weight >= signed_tx_weight
+ assert!(expected_signed_tx_weight * 99 / 100 <= signed_tx_weight);
892
893
let expected_signed_tx_fee =
894
fee_for_weight(target_feerate_sat_per_1000_weight, signed_tx_weight);
0 commit comments