We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8115c2a commit 6c5f19dCopy full SHA for 6c5f19d
src/policy/packages.h
@@ -6,6 +6,7 @@
6
#define BITCOIN_POLICY_PACKAGES_H
7
8
#include <consensus/validation.h>
9
+#include <policy/policy.h>
10
#include <primitives/transaction.h>
11
12
#include <vector>
@@ -14,6 +15,7 @@
14
15
static constexpr uint32_t MAX_PACKAGE_COUNT{25};
16
/** Default maximum total virtual size of transactions in a package in KvB. */
17
static constexpr uint32_t MAX_PACKAGE_SIZE{101};
18
+static_assert(MAX_PACKAGE_SIZE * WITNESS_SCALE_FACTOR * 1000 >= MAX_STANDARD_TX_WEIGHT);
19
20
/** A "reason" why a package was invalid. It may be that one or more of the included
21
* transactions is invalid or the package itself violates our rules.
0 commit comments