From ca24fa8ad7e9e1029c867d8dfaa9a07e82f829da Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Wed, 1 Apr 2015 16:36:49 -1000 Subject: [PATCH] Litecoin: Default minRelayTxFee and CWallet::minTxFee set by DEFAULT_TX_FEE Miners can adjust the minimum fee per 1000 bytes they are willing to accept with the -minrelaytxfee parameter. --- src/main.cpp | 2 +- src/main.h | 2 ++ src/wallet.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 914e62636..b22e2b486 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -56,7 +56,7 @@ unsigned int nCoinCacheSize = 5000; /** Fees smaller than this (in satoshi) are considered zero fee (for relaying and mining) */ -CFeeRate minRelayTxFee = CFeeRate(DUST_THRESHOLD); +CFeeRate minRelayTxFee = CFeeRate(DEFAULT_TX_FEE); CTxMemPool mempool(::minRelayTxFee); diff --git a/src/main.h b/src/main.h index 9c2efee47..d2c80504b 100644 --- a/src/main.h +++ b/src/main.h @@ -97,6 +97,8 @@ static const unsigned int MAX_REJECT_MESSAGE_LENGTH = 111; /** Litecoin: Dust Threshold: outputs below this value in satoshis are assessed an additional 1000 bytes per txout */ static const CAmount DUST_THRESHOLD = 100000; // 0.001 LTC +/** Litecoin: Default TX Fee per 1000 bytes */ +static const CAmount DEFAULT_TX_FEE = 100000; // 0.001 LTC /** Litecoin: default minimum input threshold, override with -mininput */ static const CAmount DEFAULT_MINIMUM_INPUT_THRESHOLD = DUST_THRESHOLD / 100; // 0.00001 LTC diff --git a/src/wallet.cpp b/src/wallet.cpp index 8bdaf3c33..4bb453dc7 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -38,7 +38,7 @@ CAmount nMinimumInputThreshold = DEFAULT_MINIMUM_INPUT_THRESHOLD; * Fees smaller than this (in satoshi) are considered zero fee (for transaction creation) * Override with -mintxfee */ -CFeeRate CWallet::minTxFee = CFeeRate(DUST_THRESHOLD); +CFeeRate CWallet::minTxFee = CFeeRate(DEFAULT_TX_FEE); /** @defgroup mapWallet *