diff options
author | fanquake <fanquake@gmail.com> | 2022-06-16 09:08:56 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-06-20 10:02:58 +0100 |
commit | 05fc5fdc134cdf466b8cce757088b9a550bf0c30 (patch) | |
tree | ca6e1362b9e022d0442d40cad5039b7017306367 /src | |
parent | da8d304960d0e1368e5a08a4107537cab6bea52f (diff) | |
download | bitcoin-05fc5fdc134cdf466b8cce757088b9a550bf0c30.tar.xz |
refactor: Move DEFAULT_ANCESTOR_SIZE_LIMIT to policy/policy.h
Diffstat (limited to 'src')
-rw-r--r-- | src/policy/policy.h | 2 | ||||
-rw-r--r-- | src/validation.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/policy/policy.h b/src/policy/policy.h index 0f199f928f..213fd55745 100644 --- a/src/policy/policy.h +++ b/src/policy/policy.h @@ -59,6 +59,8 @@ static const unsigned int DUST_RELAY_TX_FEE = 3000; static const unsigned int DEFAULT_MIN_RELAY_TX_FEE = 1000; /** Default for -limitancestorcount, max number of in-mempool ancestors */ 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}; /** * 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 676997aa46..9deb4b7482 100644 --- a/src/validation.h +++ b/src/validation.h @@ -59,8 +59,6 @@ namespace Consensus { struct Params; } // namespace Consensus -/** Default for -limitancestorsize, maximum kilobytes of tx + all in-mempool ancestors */ -static const unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT = 101; /** 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 */ |