mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-27 01:01:28 +02:00
refactor: Move DEFAULT_DESCENDANT_SIZE_LIMIT to policy/policy.h
This commit is contained in:
@@ -63,6 +63,8 @@ static constexpr unsigned int DEFAULT_ANCESTOR_LIMIT{25};
|
|||||||
static constexpr unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT{101};
|
static constexpr unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT{101};
|
||||||
/** Default for -limitdescendantcount, max number of in-mempool descendants */
|
/** Default for -limitdescendantcount, max number of in-mempool descendants */
|
||||||
static constexpr unsigned int DEFAULT_DESCENDANT_LIMIT{25};
|
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
|
* Standard script verification flags that standard transactions will comply
|
||||||
* with. However scripts violating these flags may still be present in valid
|
* with. However scripts violating these flags may still be present in valid
|
||||||
|
@@ -59,9 +59,6 @@ namespace Consensus {
|
|||||||
struct Params;
|
struct Params;
|
||||||
} // namespace Consensus
|
} // 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
|
// 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
|
// 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
|
// of the child), package limits are ultimately bounded by mempool package limits. Ensure that the
|
||||||
|
Reference in New Issue
Block a user