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 Aug 2, 2023
1 parent 5954700 commit 63656fa
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 => 1008,
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 63656fa

Please sign in to comment.