Merge pull request #2696 from TheBlueMatt/2023-10-no-chan-feerate-upper-bound
[rust-lightning] / lightning / src / util / test_utils.rs
index ac630f432c6155a6da6a13910ea1e62b4dc8df6c..8dc0111ef95c128d66671d498996c1860028955f 100644 (file)
@@ -94,13 +94,8 @@ pub struct TestFeeEstimator {
        pub sat_per_kw: Mutex<u32>,
 }
 impl chaininterface::FeeEstimator for TestFeeEstimator {
-       fn get_est_sat_per_1000_weight(&self, confirmation_target: ConfirmationTarget) -> u32 {
-               match confirmation_target {
-                       ConfirmationTarget::MaxAllowedNonAnchorChannelRemoteFee => {
-                               core::cmp::max(25 * 250, *self.sat_per_kw.lock().unwrap() * 10)
-                       }
-                       _ => *self.sat_per_kw.lock().unwrap(),
-               }
+       fn get_est_sat_per_1000_weight(&self, _confirmation_target: ConfirmationTarget) -> u32 {
+               *self.sat_per_kw.lock().unwrap()
        }
 }