[#TxGraph-GetAncestors] = xref:TxGraph.adoc[TxGraph]::GetAncestors :relfileprefix: ../ :mrdocs: Get pointers to all ancestors of the specified transaction (including the transaction itself), in unspecified order. The queried graph must not be oversized. Returns {} if arg does not exist in the graph. == Synopsis Declared in `<txgraph.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual std::vector<Ref*> GetAncestors( xref:TxGraph/Ref.adoc[Ref] const& arg, xref:TxGraph/Level.adoc[Level] level) noexcept = 0; ---- == Return Value The transaction and all its ancestors, or {} if it does not exist. == Parameters [cols="1,4"] |=== | Name| Description | *arg* | Reference to the transaction whose ancestors are requested. | *level* | Which graph (main or staging) to query. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#