[#IsTopoSortedPackage] = IsTopoSortedPackage :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool IsTopoSortedPackage(xref:Package.adoc[Package] const& txns); ---- == Return Value true if sorted. False if any tx spends the output of a tx that appears later in txns. == Parameters [cols="1,4"] |=== | Name| Description | *txns* | Ordered list of transactions to inspect. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#