Sfoglia il codice sorgente

[trivial] New DEFAULT_MIN_RELAY_TX_FEE = 1000

tags/v0.15.1
MarcoFalke 5 anni fa
parent
commit
536766c903
3 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 1
    1
      src/main.cpp
  2. 2
    0
      src/main.h
  3. 1
    1
      src/test/transaction_tests.cpp

+ 1
- 1
src/main.cpp Vedi File

@@ -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
- 0
src/main.h Vedi File

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

+ 1
- 1
src/test/transaction_tests.cpp Vedi File

@@ -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…
Annulla
Salva