 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
5 #ifndef BITCOIN_POLICY_PACKAGES_H
6 #define BITCOIN_POLICY_PACKAGES_H
33 using Package = std::vector<CTransactionRef>;
51 #endif // BITCOIN_POLICY_PACKAGES_H
@ PCKG_TX
At least one tx is invalid.
PackageValidationResult
A "reason" why a package was invalid.
bool IsChildWithParents(const Package &package)
Context-free check that a package is exactly one child and its parents; not all parents need to be pr...
@ PCKG_POLICY
The package itself is invalid (e.g. too many transactions).
bool CheckPackage(const Package &txns, PackageValidationState &state)
Context-free package policy checks:
@ PCKG_RESULT_UNSET
Initial value. The package has not yet been rejected.
static constexpr uint32_t MAX_PACKAGE_COUNT
Default maximum number of transactions in a package.
static const unsigned int MAX_STANDARD_TX_WEIGHT
The maximum weight for transactions we're willing to relay/mine.
std::vector< CTransactionRef > Package
A package is an ordered list of transactions.
@ PCKG_MEMPOOL_ERROR
Mempool logic error.
static constexpr uint32_t MAX_PACKAGE_SIZE
Default maximum total virtual size of transactions in a package in KvB.
static const int WITNESS_SCALE_FACTOR
Template for capturing information about block/transaction validation.