From ce196a9bfc2007b4ce79a1ec874c18fdda453caa Mon Sep 17 00:00:00 2001 From: J Ross Nicoll Date: Thu, 3 Sep 2015 21:34:03 +0100 Subject: Match fee calculation to legacy code Purge all support for zero-fee transactions Disable IsDust() for backwards compatibility --- src/dogecoin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/dogecoin.cpp') 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 &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; -- cgit v1.2.3