Skip to content

Commit 536766c

Browse files
author
MarcoFalke
committed
[trivial] New DEFAULT_MIN_RELAY_TX_FEE = 1000
1 parent 5f46a7d commit 536766c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ uint64_t nPruneTarget = 0;
7575
bool fAlerts = DEFAULT_ALERTS;
7676

7777
/** Fees smaller than this (in satoshi) are considered zero fee (for relaying, mining and transaction creation) */
78-
CFeeRate minRelayTxFee = CFeeRate(1000);
78+
CFeeRate minRelayTxFee = CFeeRate(DEFAULT_MIN_RELAY_TX_FEE);
7979

8080
CTxMemPool mempool(::minRelayTxFee);
8181

src/main.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ struct CNodeStateStats;
4141

4242
/** Default for accepting alerts from the P2P network. */
4343
static const bool DEFAULT_ALERTS = true;
44+
/** Default for -minrelaytxfee, minimum relay fee for transactions */
45+
static const unsigned int DEFAULT_MIN_RELAY_TX_FEE = 1000;
4446
/** Default for -maxorphantx, maximum number of orphan transactions kept in memory */
4547
static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100;
4648
/** Default for -limitancestorcount, max number of in-mempool ancestors */

src/test/transaction_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
361361
// not dust:
362362
t.vout[0].nValue = 672;
363363
BOOST_CHECK(IsStandardTx(t, reason));
364-
minRelayTxFee = CFeeRate(1000);
364+
minRelayTxFee = CFeeRate(DEFAULT_MIN_RELAY_TX_FEE);
365365

366366
t.vout[0].scriptPubKey = CScript() << OP_1;
367367
BOOST_CHECK(!IsStandardTx(t, reason));

0 commit comments

Comments
 (0)