aboutsummaryrefslogtreecommitdiff
path: root/src/dogecoin.cpp
diff options
context:
space:
mode:
authorJ Ross Nicoll <[email protected]>2015-09-03 21:34:03 +0100
committerJ Ross Nicoll <[email protected]>2015-09-06 11:37:03 +0100
commitce196a9bfc2007b4ce79a1ec874c18fdda453caa (patch)
tree1e369abc14f87d54cc3213699f092ce01336c747 /src/dogecoin.cpp
parentMerge pull request #1277 from patricklodder/1.10-fix-travis-extra-compiler (diff)
downloaddiscoin-ce196a9bfc2007b4ce79a1ec874c18fdda453caa.tar.xz
discoin-ce196a9bfc2007b4ce79a1ec874c18fdda453caa.zip
Match fee calculation to legacy code
Purge all support for zero-fee transactions Disable IsDust() for backwards compatibility
Diffstat (limited to 'src/dogecoin.cpp')
-rw-r--r--src/dogecoin.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dogecoin.cpp b/src/dogecoin.cpp
index 0321a6527..83e9b8b02 100644
--- a/src/dogecoin.cpp
+++ b/src/dogecoin.cpp
@@ -150,9 +150,10 @@ CAmount GetDogecoinBlockSubsidy(int nHeight, const Consensus::Params& consensusP
int64_t GetDogecoinDustFee(const std::vector<CTxOut> &vout, CFeeRate &baseFeeRate) {
int64_t nFee = 0;
- // To limit dust spam, add base fee for each output less than DUST_SOFT_LIMIT
+ // To limit dust spam, add base fee for each dust output
BOOST_FOREACH(const CTxOut& txout, vout)
- if (txout.IsDust(::minRelayTxFee))
+ // if (txout.IsDust(::minRelayTxFee))
+ if (txout.nValue < COIN)
nFee += baseFeeRate.GetFeePerK();
return nFee;