From 63656fafd9a5fc98da871f3974ce3762a0c78057 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Mon, 24 Jul 2023 09:47:02 +0200 Subject: [PATCH] f Account for `ConfirmationTarget::MempoolMinimum` --- src/wallet.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wallet.rs b/src/wallet.rs index 8e456d970..0eb7b934c 100644 --- a/src/wallet.rs +++ b/src/wallet.rs @@ -116,12 +116,14 @@ where let mut locked_fee_rate_cache = self.fee_rate_cache.write().unwrap(); let confirmation_targets = vec![ + ConfirmationTarget::MempoolMinimum, ConfirmationTarget::Background, ConfirmationTarget::Normal, ConfirmationTarget::HighPriority, ]; for target in confirmation_targets { let num_blocks = match target { + ConfirmationTarget::MempoolMinimum => 1008, ConfirmationTarget::Background => 12, ConfirmationTarget::Normal => 6, ConfirmationTarget::HighPriority => 3, @@ -282,7 +284,8 @@ where let locked_fee_rate_cache = self.fee_rate_cache.read().unwrap(); let fallback_sats_kwu = match confirmation_target { - ConfirmationTarget::Background => FEERATE_FLOOR_SATS_PER_KW, + ConfirmationTarget::MempoolMinimum => FEERATE_FLOOR_SATS_PER_KW, + ConfirmationTarget::Background => 500, ConfirmationTarget::Normal => 2000, ConfirmationTarget::HighPriority => 5000, };