From b954ec5fed258718642a9ca2c1e9b1513c75bc12 Mon Sep 17 00:00:00 2001 From: benthecarman Date: Fri, 7 Jun 2024 19:59:33 -0500 Subject: [PATCH] More trusting anchor channel fee --- mutiny-core/src/fees.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mutiny-core/src/fees.rs b/mutiny-core/src/fees.rs index 2a5eb720e..666d8a225 100644 --- a/mutiny-core/src/fees.rs +++ b/mutiny-core/src/fees.rs @@ -187,9 +187,10 @@ impl FeeEstimator for MutinyFeeEstimator { } }; - // any post processing we do after the we get the fee rate from the cache + // any post processing we do after we get the fee rate from the cache match confirmation_target { ConfirmationTarget::MinAllowedNonAnchorChannelRemoteFee => fee - 250, // helps with rounding errors + ConfirmationTarget::AnchorChannelFee => (fee / 2).max(250), // do half the mempool minimum just to prevent force closes _ => fee, } }