diff options
author | CAnon <CAnon@example.com> | 2022-06-07 23:16:25 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-06-20 10:02:58 +0100 |
commit | da8d304960d0e1368e5a08a4107537cab6bea52f (patch) | |
tree | c68961f5f8d402a3d52d5cbc4d65830a55062a46 /src/validation.h | |
parent | 8e7eeb5971444c0c93e9a89bbdcc3a51a19e09e9 (diff) |
refactor: Move DEFAULT_ANCESTOR_LIMIT to policy/policy.h
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/validation.h b/src/validation.h index 70b6c072e6..676997aa46 100644 --- a/src/validation.h +++ b/src/validation.h @@ -21,6 +21,7 @@ #include <node/blockstorage.h> #include <policy/feerate.h> #include <policy/packages.h> +#include <policy/policy.h> #include <script/script_error.h> #include <sync.h> #include <txdb.h> @@ -58,8 +59,6 @@ namespace Consensus { struct Params; } // namespace Consensus -/** Default for -limitancestorcount, max number of in-mempool ancestors */ -static const unsigned int DEFAULT_ANCESTOR_LIMIT = 25; /** 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 */ |