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 fc11193 commit 48930e3Copy full SHA for 48930e3
lightning/src/events/bump_transaction.rs
@@ -746,11 +746,8 @@ where
746
unsigned_tx_weight + 2 /* wit marker */ + total_satisfaction_weight;
747
// Our estimate should be within a 1% error margin of the actual weight and we should
748
// never underestimate.
749
- assert!(
750
- expected_signed_tx_weight >= signed_tx_weight
751
- && expected_signed_tx_weight - (expected_signed_tx_weight / 100)
752
- <= signed_tx_weight
753
- );
+ assert!(expected_signed_tx_weight >= signed_tx_weight);
+ assert!(expected_signed_tx_weight * 99 / 100 <= signed_tx_weight);
754
755
let expected_package_fee = Amount::from_sat(fee_for_weight(
756
package_target_feerate_sat_per_1000_weight,
0 commit comments