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/policy | |
parent | 8e7eeb5971444c0c93e9a89bbdcc3a51a19e09e9 (diff) |
refactor: Move DEFAULT_ANCESTOR_LIMIT to policy/policy.h
Diffstat (limited to 'src/policy')
-rw-r--r-- | src/policy/policy.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/policy/policy.h b/src/policy/policy.h index 94f9623b8a..0f199f928f 100644 --- a/src/policy/policy.h +++ b/src/policy/policy.h @@ -57,6 +57,8 @@ static const unsigned int MAX_STANDARD_SCRIPTSIG_SIZE = 1650; static const unsigned int DUST_RELAY_TX_FEE = 3000; /** Default for -minrelaytxfee, minimum relay fee for transactions */ 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}; /** * Standard script verification flags that standard transactions will comply * with. However scripts violating these flags may still be present in valid |