If any direct dependencies exist between transactions (i.e. a child spending the output of a parent), checks that all parents appear somewhere in the list before their respective children. No other ordering is enforced. This function cannot detect indirect dependencies (e.g. a transaction's grandparent if its parent is not present).
Synopsis
Declared in <policy/packages.h>
bool
IsTopoSortedPackage(Package const& txns);
Return Value
true if sorted. False if any tx spends the output of a tx that appears later in txns.
Parameters
Name |
Description |
txns |
Ordered list of transactions to inspect. |
Created with MrDocs