aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2018-01-10 08:43:05 +0000
committerRoss Nicoll <[email protected]>2018-09-19 21:09:16 +0100
commit3d363eccd436df49bcdfccf01bcd5148ba3cfb87 (patch)
tree1f045afcb027093b6261f5e2ddd179664fd13d64 /src/wallet/wallet.cpp
parentAlways use parameters at block 0 to get genesis block hash (#1416) (diff)
downloaddiscoin-3d363eccd436df49bcdfccf01bcd5148ba3cfb87.tar.xz
discoin-3d363eccd436df49bcdfccf01bcd5148ba3cfb87.zip
Bring 1.14 fees in line with 1.10 (#1425)
* Disable free transactions * Updating remaining fee calculation constants * Round up to the nearest 1k, not up 1k so the UI fee estimator is correct
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index b34cbae3a..c61272c8b 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -2808,18 +2808,14 @@ bool CWallet::AddAccountingEntry(const CAccountingEntry& acentry, CWalletDB *pwa
CAmount CWallet::GetRequiredFee(const CMutableTransaction& tx, unsigned int nTxBytes)
{
- // Dogecoin: Round TX bytes up to the next 1,000 bytes
- nTxBytes += 1000 - (nTxBytes % 1000);
-
+ nTxBytes = GetDogecoinTxSize(nTxBytes);
// Dogecoin: Add an increased fee for each dust output
return std::max(minTxFee.GetFee(nTxBytes) + GetDogecoinDustFee(tx.vout, minTxFee), ::minRelayTxFee.GetFee(nTxBytes));
}
CAmount CWallet::GetRequiredFee(unsigned int nTxBytes)
{
- // Dogecoin: Round TX bytes up to the next 1,000 bytes
- nTxBytes += 1000 - (nTxBytes % 1000);
-
+ nTxBytes = GetDogecoinTxSize(nTxBytes);
return std::max(minTxFee.GetFee(nTxBytes), ::minRelayTxFee.GetFee(nTxBytes));
}