From 9c94f3b3a71b6d1c30471cf6a2a4fbadcc351a3f Mon Sep 17 00:00:00 2001 From: fanquake Date: Thu, 16 Jun 2022 14:35:02 +0100 Subject: refactor: move EXTRA_DESCENDANT_TX_SIZE_LIMIT to policy/policy.h --- src/policy/policy.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/policy') diff --git a/src/policy/policy.h b/src/policy/policy.h index 41f6635eea..cd46652efc 100644 --- a/src/policy/policy.h +++ b/src/policy/policy.h @@ -65,6 +65,12 @@ static constexpr unsigned int DEFAULT_ANCESTOR_SIZE_LIMIT{101}; 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}; +/** + * An extra transaction can be added to a package, as long as it only has one + * ancestor and is no larger than this. Not really any reason to make this + * configurable as it doesn't materially change DoS parameters. + */ +static constexpr unsigned int EXTRA_DESCENDANT_TX_SIZE_LIMIT{10000}; /** * Standard script verification flags that standard transactions will comply * with. However scripts violating these flags may still be present in valid -- cgit v1.2.3