From b63fcb0a188c9641ffeaae878728971300f9307c Mon Sep 17 00:00:00 2001 From: benthecarman Date: Sat, 7 Oct 2023 14:48:01 -0500 Subject: [PATCH] 3x the high priority fee --- mutiny-core/src/fees.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mutiny-core/src/fees.rs b/mutiny-core/src/fees.rs index d5648e4b9..d08deb2f6 100644 --- a/mutiny-core/src/fees.rs +++ b/mutiny-core/src/fees.rs @@ -160,7 +160,13 @@ impl FeeEstimator for MutinyFeeEstimator { log_trace!(self.logger, "Got fee rate from saved cache!"); let sats_vbyte = num.to_owned(); // convert to sats per kw - let fee_rate = sats_vbyte * 250.0; + let mut fee_rate = sats_vbyte * 250.0; + + // if we're using the high priority target, multiply by 3 + // this should help prevent force closures from fee disputes + if confirmation_target == ConfirmationTarget::HighPriority { + fee_rate *= 3.0; + } // return the fee rate, but make sure it's not lower than the floor (fee_rate as u32).max(FEERATE_FLOOR_SATS_PER_KW)