Make the base fee configurable in ChannelConfig
[rust-lightning] / lightning / src / util / test_utils.rs
index adaf631f8a93b4f63d68ae71bde3441e47635b92..2775697b1dbb1d672e396341848b08b6b5c059bf 100644 (file)
@@ -56,11 +56,11 @@ impl Writer for TestVecWriter {
 }
 
 pub struct TestFeeEstimator {
-       pub sat_per_kw: u32,
+       pub sat_per_kw: Mutex<u32>,
 }
 impl chaininterface::FeeEstimator for TestFeeEstimator {
        fn get_est_sat_per_1000_weight(&self, _confirmation_target: ConfirmationTarget) -> u32 {
-               self.sat_per_kw
+               *self.sat_per_kw.lock().unwrap()
        }
 }