TxGraph::GetAncestorsUnion

Like GetAncestors, but return the Refs for all transactions in the union of the provided arguments' ancestors (each transaction is only reported once). Refs that do not exist in the queried graph are ignored. Null refs are not allowed.

Synopsis

Declared in <txgraph.h>

virtual
std::vector<Ref*>
GetAncestorsUnion(
    std::span<Ref const const*> args,
    Level level) noexcept = 0;

Return Value

The union of all inputs' ancestors, each reported once.

Parameters

NameDescription
argsReferences to the transactions whose ancestors are combined.
levelWhich graph (main or staging) to query.