![]() |
Bitcoin Core
26.1.0
P2P Digital Currency
|
#include <policy/packages.h>#include <policy/policy.h>#include <primitives/transaction.h>#include <uint256.h>#include <util/hasher.h>#include <algorithm>#include <cassert>#include <iterator>#include <memory>#include <numeric>#include <unordered_set>Go to the source code of this file.
Functions | |
| bool | CheckPackage (const Package &txns, PackageValidationState &state) |
| Context-free package policy checks: More... | |
| bool | IsChildWithParents (const Package &package) |
| Context-free check that a package is exactly one child and its parents; not all parents need to be present, but the package must not contain any transactions that are not the child's parents. More... | |
| bool | IsChildWithParentsTree (const Package &package) |
| Context-free check that a package IsChildWithParents() and none of the parents depend on each other (the package is a "tree"). More... | |
| bool CheckPackage | ( | const Package & | txns, |
| PackageValidationState & | state | ||
| ) |
Context-free package policy checks:
Definition at line 18 of file packages.cpp.
| bool IsChildWithParents | ( | const Package & | package | ) |
Context-free check that a package is exactly one child and its parents; not all parents need to be present, but the package must not contain any transactions that are not the child's parents.
It is expected to be sorted, which means the last transaction must be the child.
Definition at line 75 of file packages.cpp.
| bool IsChildWithParentsTree | ( | const Package & | package | ) |
Context-free check that a package IsChildWithParents() and none of the parents depend on each other (the package is a "tree").
Definition at line 92 of file packages.cpp.
1.8.14