Skip to content

Commit

Permalink
f Account for ConfirmationTarget::MempoolMinimum
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed Jul 24, 2023
1 parent 4bed243 commit 03dd0e1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 => 144,
ConfirmationTarget::Background => 12,
ConfirmationTarget::Normal => 6,
ConfirmationTarget::HighPriority => 3,
Expand Down Expand Up @@ -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,
};
Expand Down

0 comments on commit 03dd0e1

Please sign in to comment.