aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-06-20 10:24:15 +0100
committerfanquake <fanquake@gmail.com>2022-06-20 10:24:15 +0100
commit0d8e68d7054466925ecd165a871fc0e3f53cdafa (patch)
tree7fdddd3545dd2f2a096a046bde4cc10a70a8296b /src/validation.h
parent9c94f3b3a71b6d1c30471cf6a2a4fbadcc351a3f (diff)
downloadbitcoin-0d8e68d7054466925ecd165a871fc0e3f53cdafa.tar.xz
refactor: move DEFAULT_*_LIMIT assertions from validation to policy
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/validation.h b/src/validation.h
index 4fa58ad6cb..3b6cd509c6 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -59,15 +59,6 @@ namespace Consensus {
struct Params;
} // namespace Consensus
-// 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
-// of the child), package limits are ultimately bounded by mempool package limits. Ensure that the
-// defaults reflect this constraint.
-static_assert(DEFAULT_DESCENDANT_LIMIT >= MAX_PACKAGE_COUNT);
-static_assert(DEFAULT_ANCESTOR_LIMIT >= MAX_PACKAGE_COUNT);
-static_assert(DEFAULT_ANCESTOR_SIZE_LIMIT >= MAX_PACKAGE_SIZE);
-static_assert(DEFAULT_DESCENDANT_SIZE_LIMIT >= MAX_PACKAGE_SIZE);
-
/** Default for -mempoolexpiry, expiration time for mempool transactions in hours */
static const unsigned int DEFAULT_MEMPOOL_EXPIRY = 336;
/** Maximum number of dedicated script-checking threads allowed */