Fix panic on reorg through the funding_locked-generating block
[rust-lightning] / src / util / test_utils.rs
index 5eec3f027897b609e453ff5ec91f130b8e2edeb6..9646754f2d0097f51358cf5be9d86c8519acfcd4 100644 (file)
@@ -14,11 +14,11 @@ use std::sync::{Arc,Mutex};
 use std::{mem};
 
 pub struct TestFeeEstimator {
-       pub sat_per_vbyte: u64,
+       pub sat_per_kw: u64,
 }
 impl chaininterface::FeeEstimator for TestFeeEstimator {
-       fn get_est_sat_per_vbyte(&self, _confirmation_target: ConfirmationTarget) -> u64 {
-               self.sat_per_vbyte
+       fn get_est_sat_per_1000_weight(&self, _confirmation_target: ConfirmationTarget) -> u64 {
+               self.sat_per_kw
        }
 }