aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-06-16 09:14:02 +0100
committerfanquake <fanquake@gmail.com>2022-06-20 10:02:58 +0100
commita34aa4c187d854b410f04df639b19f4ef8e92078 (patch)
tree1ef4e5cf05d4862dd86a05f18cf2d9a7c105ebcf
parent05fc5fdc134cdf466b8cce757088b9a550bf0c30 (diff)
downloadbitcoin-a34aa4c187d854b410f04df639b19f4ef8e92078.tar.xz
refactor: Move DEFAULT_DESCENDANT_LIMIT to policy/policy.h
-rw-r--r--src/policy/policy.h2
-rw-r--r--src/validation.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/policy/policy.h b/src/policy/policy.h
index 213fd55745..3ed2949305 100644
--- a/src/policy/policy.h
+++ b/src/policy/policy.h
@@ -61,6 +61,8 @@ static const unsigned int DEFAULT_MIN_RELAY_TX_FEE = 1000;
static constexpr unsigned int DEFAULT_ANCESTOR_LIMIT{25};
/** Default for -limitancestorsize, maximum kilobytes of tx + all in-mempool ancestors */
static constexpr unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT{101};
+/** Default for -limitdescendantcount, max number of in-mempool descendants */
+static constexpr unsigned int DEFAULT_DESCENDANT_LIMIT{25};
/**
* Standard script verification flags that standard transactions will comply
* with. However scripts violating these flags may still be present in valid
diff --git a/src/validation.h b/src/validation.h
index 9deb4b7482..d8eb1ce279 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -59,8 +59,6 @@ namespace Consensus {
struct Params;
} // namespace Consensus
-/** Default for -limitdescendantcount, max number of in-mempool descendants */
-static const unsigned int DEFAULT_DESCENDANT_LIMIT = 25;
/** Default for -limitdescendantsize, maximum kilobytes of in-mempool descendants */
static const unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT = 101;