Bitcoin ABC 0.26.3
P2P Digital Currency
|
#include <consensus/validation.h>
#include <policy/packages.h>
#include <primitives/transaction.h>
#include <primitives/txid.h>
#include <util/hasher.h>
#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: | |
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. | |
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"). | |
uint256 | GetPackageHash (const Package &package) |
bool CheckPackage | ( | const Package & | txns, |
PackageValidationState & | state | ||
) |
Context-free package policy checks:
Definition at line 14 of file packages.cpp.
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 86 of file packages.cpp.
Context-free check that a package IsChildWithParents() and none of the parents depend on each other (the package is a "tree").
Definition at line 109 of file packages.cpp.