diff options
| author | Max K. <[email protected]> | 2015-07-31 20:16:46 +0200 |
|---|---|---|
| committer | Max K. <[email protected]> | 2015-07-31 20:16:46 +0200 |
| commit | faaa41271763a595007dc54639f86026d4b0eca9 (patch) | |
| tree | 27eaff706a748442d830e5da0643d672aafe4044 /src/main.cpp | |
| parent | Merge pull request #1215 from rnicoll/1.10-bitcoin-fix (diff) | |
| parent | Add Dogecoin current fee calculation logic (diff) | |
| download | discoin-faaa41271763a595007dc54639f86026d4b0eca9.tar.xz discoin-faaa41271763a595007dc54639f86026d4b0eca9.zip | |
Merge pull request #1204 from rnicoll/1.10-fees
Add Dogecoin current fee calculation logic
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index b42638096..ee5be679c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -66,7 +66,7 @@ uint64_t nPruneTarget = 0; bool fAlerts = DEFAULT_ALERTS; /** Fees smaller than this (in satoshi) are considered zero fee (for relaying and mining) */ -CFeeRate minRelayTxFee = CFeeRate(1000); +CFeeRate minRelayTxFee = CFeeRate(COIN); CTxMemPool mempool(::minRelayTxFee); @@ -868,8 +868,10 @@ CAmount GetMinRelayFee(const CTransaction& tx, unsigned int nBytes, bool fAllowF } CAmount nMinFee = ::minRelayTxFee.GetFee(nBytes); + nMinFee += GetDogecoinDustFee(tx.vout, ::minRelayTxFee); - if (fAllowFree) + // Dogecoin: Disable free transactions + /* if (fAllowFree) { // There is a free transaction area in blocks created by most miners, // * If we are relaying we allow transactions up to DEFAULT_BLOCK_PRIORITY_SIZE - 1000 @@ -877,7 +879,7 @@ CAmount GetMinRelayFee(const CTransaction& tx, unsigned int nBytes, bool fAllowF // multiple transactions instead of one big transaction to avoid fees. if (nBytes < (DEFAULT_BLOCK_PRIORITY_SIZE - 1000)) nMinFee = 0; - } + } */ if (!MoneyRange(nMinFee)) nMinFee = MAX_MONEY; |