Skip to content

Commit 48930e3

Browse files
Update lightning/src/events/bump_transaction.rs
Co-authored-by: Matt Corallo <[email protected]>
1 parent fc11193 commit 48930e3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lightning/src/events/bump_transaction.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -746,11 +746,8 @@ where
746746
unsigned_tx_weight + 2 /* wit marker */ + total_satisfaction_weight;
747747
// Our estimate should be within a 1% error margin of the actual weight and we should
748748
// 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-
);
749+
assert!(expected_signed_tx_weight >= signed_tx_weight);
750+
assert!(expected_signed_tx_weight * 99 / 100 <= signed_tx_weight);
754751

755752
let expected_package_fee = Amount::from_sat(fee_for_weight(
756753
package_target_feerate_sat_per_1000_weight,

0 commit comments

Comments
 (0)