diff options
author | glozow <gloriajzhao@gmail.com> | 2023-05-11 17:50:05 +0100 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2023-10-02 10:13:38 +0100 |
commit | e32ba1599c599e75b1da3393f71f633de860505f (patch) | |
tree | 3ea33a6c45e642620ed3383c1b44caaeeaab579d /src/policy/packages.h | |
parent | b4f28cc345ef9c5261c4a8d743654a44784c7802 (diff) | |
download | bitcoin-e32ba1599c599e75b1da3393f71f633de860505f.tar.xz |
[txpackages] IsChildWithParentsTree()
Many edge cases exist when parents in a child-with-parents package can
spend each other. However, this pattern should also be uncommon in
normal use cases.
Diffstat (limited to 'src/policy/packages.h')
-rw-r--r-- | src/policy/packages.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/policy/packages.h b/src/policy/packages.h index 702667b8ad..cf37857e4b 100644 --- a/src/policy/packages.h +++ b/src/policy/packages.h @@ -63,4 +63,8 @@ bool CheckPackage(const Package& txns, PackageValidationState& state); */ bool IsChildWithParents(const Package& package); +/** Context-free check that a package IsChildWithParents() and none of the parents depend on each + * other (the package is a "tree"). + */ +bool IsChildWithParentsTree(const Package& package); #endif // BITCOIN_POLICY_PACKAGES_H |