Browse Source

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.
pull/4/head
Simon 8 years ago
parent
commit
ba0625f25d
  1. 2
      src/main.cpp
  2. 2
      src/main.h

2
src/main.cpp

@ -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);

2
src/main.h

@ -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) */

Loading…
Cancel
Save