Skip to content

Commit

Permalink
Merge pull request #1209 from MutinyWallet/dont-care-min-fee
Browse files Browse the repository at this point in the history
More trusting anchor channel fee
  • Loading branch information
TonyGiorgio authored Jun 10, 2024
2 parents 54ab034 + b954ec5 commit ac5c606
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mutiny-core/src/fees.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,10 @@ impl<S: MutinyStorage> FeeEstimator for MutinyFeeEstimator<S> {
}
};

// 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,
}
}
Expand Down

0 comments on commit ac5c606

Please sign in to comment.