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.
Synopsis
Declared in <policy/packages.h>
bool
IsChildWithParents(Package const& package);
Return Value
true if the package is exactly one child and (a subset of) its parents.
Parameters
Name |
Description |
package |
Transactions expected to form a child‐with‐parents package. |
Created with MrDocs