aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2019-03-09 04:19:24 +0000
committerRoss Nicoll <[email protected]>2019-03-17 10:00:38 -0700
commitd0133b27fc399aa69fdccaf7d104d072e4dd90f4 (patch)
tree239d0989972f0b9a573ac7f5ade2fa94d74810d5 /src/wallet/wallet.cpp
parentFixed typo in dogecoin_find_bdb51.m4 (diff)
downloaddiscoin-d0133b27fc399aa69fdccaf7d104d072e4dd90f4.tar.xz
discoin-d0133b27fc399aa69fdccaf7d104d072e4dd90f4.zip
Drop use of smart fees
Drop use of smart fees when calculating transaction fees. Dogecoin fees are intentionally on a fixed schedule.
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 27bee7f58..504852d68 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -2835,7 +2835,9 @@ CAmount CWallet::GetMinimumFee(const CMutableTransaction& tx, unsigned int nTxBy
nFeeNeeded = fallbackFee.GetFee(nTxBytes);
}
// prevent user from paying a fee below minRelayTxFee or minTxFee
- nFeeNeeded = std::max(nFeeNeeded, GetRequiredFee(tx, nTxBytes));
+ // Dogecoin: Drop the smart fee estimate, use GetRequiredFee
+ // nFeeNeeded = std::max(nFeeNeeded, GetRequiredFee(tx, nTxBytes));
+ nFeeNeeded = GetRequiredFee(tx, nTxBytes);
// But always obey the maximum
if (nFeeNeeded > maxTxFee)
nFeeNeeded = maxTxFee;