File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ uint64_t nPruneTarget = 0;
75
75
bool fAlerts = DEFAULT_ALERTS;
76
76
77
77
/* * 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 );
79
79
80
80
CTxMemPool mempool (::minRelayTxFee);
81
81
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ struct CNodeStateStats;
41
41
42
42
/* * Default for accepting alerts from the P2P network. */
43
43
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 ;
44
46
/* * Default for -maxorphantx, maximum number of orphan transactions kept in memory */
45
47
static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100 ;
46
48
/* * Default for -limitancestorcount, max number of in-mempool ancestors */
Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
361
361
// not dust:
362
362
t.vout [0 ].nValue = 672 ;
363
363
BOOST_CHECK (IsStandardTx (t, reason));
364
- minRelayTxFee = CFeeRate (1000 );
364
+ minRelayTxFee = CFeeRate (DEFAULT_MIN_RELAY_TX_FEE );
365
365
366
366
t.vout [0 ].scriptPubKey = CScript () << OP_1;
367
367
BOOST_CHECK (!IsStandardTx (t, reason));
You can’t perform that action at this time.
0 commit comments