aboutsummaryrefslogtreecommitdiff
path: root/src/policy
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2022-06-16 14:35:02 +0100
committerfanquake <fanquake@gmail.com>2022-06-20 10:02:59 +0100
commit9c94f3b3a71b6d1c30471cf6a2a4fbadcc351a3f (patch)
tree37af33f96f9d0679ec432e3315193a13547b0b63 /src/policy
parent39c60362536a868712f5b4c3ba8d04ef811e9e40 (diff)
downloadbitcoin-9c94f3b3a71b6d1c30471cf6a2a4fbadcc351a3f.tar.xz
refactor: move EXTRA_DESCENDANT_TX_SIZE_LIMIT to policy/policy.h
Diffstat (limited to 'src/policy')
-rw-r--r--src/policy/policy.h6
1 files changed, 6 insertions, 0 deletions
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
@@ -66,6 +66,12 @@ 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
* blocks and we must accept those blocks.