Skip to content

Commit 62d56bb

Browse files
committed
refactor: Move DEFAULT_DESCENDANT_SIZE_LIMIT to policy/policy.h
1 parent a34aa4c commit 62d56bb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/policy/policy.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ static constexpr unsigned int DEFAULT_ANCESTOR_LIMIT{25};
6363
static constexpr unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT{101};
6464
/** Default for -limitdescendantcount, max number of in-mempool descendants */
6565
static constexpr unsigned int DEFAULT_DESCENDANT_LIMIT{25};
66+
/** Default for -limitdescendantsize, maximum kilobytes of in-mempool descendants */
67+
static constexpr unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT{101};
6668
/**
6769
* Standard script verification flags that standard transactions will comply
6870
* with. However scripts violating these flags may still be present in valid

src/validation.h

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

62-
/** Default for -limitdescendantsize, maximum kilobytes of in-mempool descendants */
63-
static const unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT = 101;
64-
6562
// If a package is submitted, it must be within the mempool's ancestor/descendant limits. Since a
6663
// submitted package must be child-with-unconfirmed-parents (all of the transactions are an ancestor
6764
// of the child), package limits are ultimately bounded by mempool package limits. Ensure that the

0 commit comments

Comments
 (0)