Skip to content

Commit c735540

Browse files
committed
Move ORPHAN constants from validation.h to net_processing.h
1 parent 07fd147 commit c735540

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/net_processing.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
#include "net.h"
1010
#include "validationinterface.h"
1111

12+
/** Default for -maxorphantx, maximum number of orphan transactions kept in memory */
13+
static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100;
14+
/** Expiration time for orphan transactions in seconds */
15+
static const int64_t ORPHAN_TX_EXPIRE_TIME = 20 * 60;
16+
/** Minimum time between orphan transactions expire time checks in seconds */
17+
static const int64_t ORPHAN_TX_EXPIRE_INTERVAL = 5 * 60;
18+
1219
/** Register with a network node to receive its signals */
1320
void RegisterNodeSignals(CNodeSignals& nodeSignals);
1421
/** Unregister a network node */

src/validation.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@ static const CAmount DEFAULT_TRANSACTION_MAXFEE = 0.1 * COIN;
5858
static const CAmount HIGH_TX_FEE_PER_KB = 0.01 * COIN;
5959
//! -maxtxfee will warn if called with a higher fee than this amount (in satoshis)
6060
static const CAmount HIGH_MAX_TX_FEE = 100 * HIGH_TX_FEE_PER_KB;
61-
/** Default for -maxorphantx, maximum number of orphan transactions kept in memory */
62-
static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100;
63-
/** Expiration time for orphan transactions in seconds */
64-
static const int64_t ORPHAN_TX_EXPIRE_TIME = 20 * 60;
65-
/** Minimum time between orphan transactions expire time checks in seconds */
66-
static const int64_t ORPHAN_TX_EXPIRE_INTERVAL = 5 * 60;
6761
/** Default for -limitancestorcount, max number of in-mempool ancestors */
6862
static const unsigned int DEFAULT_ANCESTOR_LIMIT = 25;
6963
/** Default for -limitancestorsize, maximum kilobytes of tx + all in-mempool ancestors */

0 commit comments

Comments
 (0)