refactor: Move DEFAULT_DESCENDANT_LIMIT to policy/policy.h

This commit is contained in:
fanquake 2022-06-16 09:14:02 +01:00
parent 05fc5fdc13
commit a34aa4c187
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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;