From efc1fec8b0f96b5663d7257a0c2cffd8ef143219 Mon Sep 17 00:00:00 2001 From: Nadav Ivgi Date: Thu, 25 Apr 2024 02:35:11 +0300 Subject: [PATCH] Switch to estimatesmartfee's ECONOMICAL mode --- src/daemon.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon.rs b/src/daemon.rs index fbf5165dd..90e38a931 100644 --- a/src/daemon.rs +++ b/src/daemon.rs @@ -532,7 +532,7 @@ impl Daemon { // Missing estimates are logged but do not cause a failure, whatever is available is returned #[allow(clippy::float_cmp)] pub fn estimatesmartfee_batch(&self, conf_targets: &[u16]) -> Result> { - let params_list: Vec = conf_targets.iter().map(|t| json!([t])).collect(); + let params_list: Vec = conf_targets.iter().map(|t| json!([t, "ECONOMICAL"])).collect(); Ok(self .requests("estimatesmartfee", ¶ms_list)?