Skip to content

Commit a34aa4c

Browse files
committed
refactor: Move DEFAULT_DESCENDANT_LIMIT to policy/policy.h
1 parent 05fc5fd commit a34aa4c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/policy/policy.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ static const unsigned int DEFAULT_MIN_RELAY_TX_FEE = 1000;
6161
static constexpr unsigned int DEFAULT_ANCESTOR_LIMIT{25};
6262
/** Default for -limitancestorsize, maximum kilobytes of tx + all in-mempool ancestors */
6363
static constexpr unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT{101};
64+
/** Default for -limitdescendantcount, max number of in-mempool descendants */
65+
static constexpr unsigned int DEFAULT_DESCENDANT_LIMIT{25};
6466
/**
6567
* Standard script verification flags that standard transactions will comply
6668
* with. However scripts violating these flags may still be present in valid

src/validation.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ namespace Consensus {
5959
struct Params;
6060
} // namespace Consensus
6161

62-
/** Default for -limitdescendantcount, max number of in-mempool descendants */
63-
static const unsigned int DEFAULT_DESCENDANT_LIMIT = 25;
6462
/** Default for -limitdescendantsize, maximum kilobytes of in-mempool descendants */
6563
static const unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT = 101;
6664

0 commit comments

Comments
 (0)