diff options
author | fanquake <fanquake@gmail.com> | 2022-06-16 09:18:36 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-06-20 10:02:58 +0100 |
commit | 62d56bb714e98c54051f8564991b2748efa1737c (patch) | |
tree | 06dc6adfa17b30e5fa6448dc419ef65ffef4185e /src | |
parent | a34aa4c187d854b410f04df639b19f4ef8e92078 (diff) | |
download | bitcoin-62d56bb714e98c54051f8564991b2748efa1737c.tar.xz |
refactor: Move DEFAULT_DESCENDANT_SIZE_LIMIT to policy/policy.h
Diffstat (limited to 'src')
-rw-r--r-- | src/policy/policy.h | 2 | ||||
-rw-r--r-- | src/validation.h | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/policy/policy.h b/src/policy/policy.h index 3ed2949305..fda80aa239 100644 --- a/src/policy/policy.h +++ b/src/policy/policy.h @@ -63,6 +63,8 @@ static constexpr unsigned int DEFAULT_ANCESTOR_LIMIT{25}; 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}; +/** Default for -limitdescendantsize, maximum kilobytes of in-mempool descendants */ +static constexpr unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT{101}; /** * 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 d8eb1ce279..4fa58ad6cb 100644 --- a/src/validation.h +++ b/src/validation.h @@ -59,9 +59,6 @@ namespace Consensus { struct Params; } // namespace Consensus -/** Default for -limitdescendantsize, maximum kilobytes of in-mempool descendants */ -static const unsigned int DEFAULT_DESCENDANT_SIZE_LIMIT = 101; - // If a package is submitted, it must be within the mempool's ancestor/descendant limits. Since a // submitted package must be child-with-unconfirmed-parents (all of the transactions are an ancestor // of the child), package limits are ultimately bounded by mempool package limits. Ensure that the |