Browse Source

[trivial] New DEFAULT_MIN_RELAY_TX_FEE = 1000

0.13
MarcoFalke 9 years ago
parent
commit
536766c903
  1. 2
      src/main.cpp
  2. 2
      src/main.h
  3. 2
      src/test/transaction_tests.cpp

2
src/main.cpp

@ -75,7 +75,7 @@ uint64_t nPruneTarget = 0; @@ -75,7 +75,7 @@ uint64_t nPruneTarget = 0;
bool fAlerts = DEFAULT_ALERTS;
/** Fees smaller than this (in satoshi) are considered zero fee (for relaying, mining and transaction creation) */
CFeeRate minRelayTxFee = CFeeRate(1000);
CFeeRate minRelayTxFee = CFeeRate(DEFAULT_MIN_RELAY_TX_FEE);
CTxMemPool mempool(::minRelayTxFee);

2
src/main.h

@ -41,6 +41,8 @@ struct CNodeStateStats; @@ -41,6 +41,8 @@ struct CNodeStateStats;
/** Default for accepting alerts from the P2P network. */
static const bool DEFAULT_ALERTS = true;
/** 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;
/** Default for -limitancestorcount, max number of in-mempool ancestors */

2
src/test/transaction_tests.cpp

@ -361,7 +361,7 @@ BOOST_AUTO_TEST_CASE(test_IsStandard) @@ -361,7 +361,7 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
// not dust:
t.vout[0].nValue = 672;
BOOST_CHECK(IsStandardTx(t, reason));
minRelayTxFee = CFeeRate(1000);
minRelayTxFee = CFeeRate(DEFAULT_MIN_RELAY_TX_FEE);
t.vout[0].scriptPubKey = CScript() << OP_1;
BOOST_CHECK(!IsStandardTx(t, reason));

Loading…
Cancel
Save