diff --git a/src/policy/packages.h b/src/policy/packages.h index 60aafb6d748..4b1463dcb34 100644 --- a/src/policy/packages.h +++ b/src/policy/packages.h @@ -10,6 +10,11 @@ #include +/** Default maximum number of transactions in a package. */ +static constexpr uint32_t MAX_PACKAGE_COUNT{25}; +/** Default maximum total virtual size of transactions in a package in KvB. */ +static constexpr uint32_t MAX_PACKAGE_SIZE{101}; + /** A "reason" why a package was invalid. It may be that one or more of the included * transactions is invalid or the package itself violates our rules. * We don't distinguish between consensus and policy violations right now. diff --git a/src/test/txvalidation_tests.cpp b/src/test/txvalidation_tests.cpp index 5242c666284..95ad85d0f83 100644 --- a/src/test/txvalidation_tests.cpp +++ b/src/test/txvalidation_tests.cpp @@ -4,6 +4,8 @@ #include #include +#include +#include #include #include