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.
Declared in <txgraph.h>
virtual
std::vector<Ref*>
GetAncestors(
Ref const& arg,
Level level) noexcept = 0;
The transaction and all its ancestors, or {} if it does not exist.
| Name | Description |
|---|---|
| arg | Reference to the transaction whose ancestors are requested. |
| level | Which graph (main or staging) to query. |