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>

virtual
std::vector<Ref*>
GetAncestors(
    Ref const& arg,
    Level level) noexcept = 0;

Return Value

The transaction and all its ancestors, or {} if it does not exist.

Parameters

Name

Description

arg

Reference to the transaction whose ancestors are requested.

level

Which graph (main or staging) to query.

Created with MrDocs