Convert fee API to per_kw instead of per_vb
[rust-lightning] / fuzz / fuzz_targets / full_stack_target.rs
index 25d539922e0ea2cc16d3c8f2f0317d061781e00d..59f9d2bb47cc32b3e4b9f9b1cedb8a5d7c02bb19 100644 (file)
@@ -84,10 +84,10 @@ struct FuzzEstimator {
        input: Arc<InputData>,
 }
 impl FeeEstimator for FuzzEstimator {
-       fn get_est_sat_per_vbyte(&self, _: ConfirmationTarget) -> u64 {
+       fn get_est_sat_per_1000_weight(&self, _: ConfirmationTarget) -> u64 {
                //TODO: We should actually be testing at least much more than 64k...
                match self.input.get_slice(2) {
-                       Some(slice) => slice_to_be16(slice) as u64,
+                       Some(slice) => slice_to_be16(slice) as u64 * 250,
                        None => 0
                }
        }