Skip to content

Commit

Permalink
[Bug][Wallet] Fix CWallet::GetMinimumFee improperly set to feePerKb
Browse files Browse the repository at this point in the history
nFeeNeeded is an absolute value (feePerKb * txKb).
Github-Pull: #1575
Rebased-From: 08092dd
  • Loading branch information
random-zebra authored and Fuzzbawls committed May 5, 2020
1 parent 6fc725e commit b4e40a4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/wallet/wallet.cpp
Expand Up @@ -2800,9 +2800,6 @@ CAmount CWallet::GetMinimumFee(unsigned int nTxBytes, unsigned int nConfirmTarge
{
// payTxFee is user-set "I want to pay this much"
CAmount nFeeNeeded = payTxFee.GetFee(nTxBytes);
// user selected total at least (default=true)
if (fPayAtLeastCustomFee && nFeeNeeded > 0 && nFeeNeeded < payTxFee.GetFeePerK())
nFeeNeeded = payTxFee.GetFeePerK();
// User didn't set: use -txconfirmtarget to estimate...
if (nFeeNeeded == 0)
nFeeNeeded = pool.estimateFee(nConfirmTarget).GetFee(nTxBytes);
Expand Down

0 comments on commit b4e40a4

Please sign in to comment.