Set default minrelaytxfee to 1000 zatoshis to match upstream.

A txout will be considered dust when it has a value <546 zatoshis.
Helps to address #1719.
This commit is contained in:
Simon 2016-11-13 20:38:24 -08:00
parent 057ab6b4d1
commit ba0625f25d
2 changed files with 3 additions and 1 deletions

View File

@ -69,7 +69,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(5000);
CFeeRate minRelayTxFee = CFeeRate(DEFAULT_MIN_RELAY_TX_FEE);
CTxMemPool mempool(::minRelayTxFee);

View File

@ -60,6 +60,8 @@ static const int ALERT_PRIORITY_SAFE_MODE = 4000;
static const unsigned int MAX_P2SH_SIGOPS = 15;
/** The maximum number of sigops we're willing to relay/mine in a single tx */
static const unsigned int MAX_STANDARD_TX_SIGOPS = MAX_BLOCK_SIGOPS/5;
/** Default for -minrelaytxfee, minimum relay fee for transactions */
static const unsigned int DEFAULT_MIN_RELAY_TX_FEE = 1000;
/** Default for -maxorphantx, maximum number of orphan transactions kept in memory */
static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100;
/** The maximum size of a blk?????.dat file (since 0.8) */