TxGraph::AddDependency

Add a dependency between two specified transactions. If a staging graph exists, the dependency is only added there. Parent may not be a descendant of child already (but may be an ancestor of it already, in which case this is a no-op). If either transaction is already removed, this is a no-op.

Synopsis

Declared in <txgraph.h>

virtual
void
AddDependency(
    Ref const& parent,
    Ref const& child) noexcept = 0;

Parameters

NameDescription
parentReference to the parent (spent-from) transaction.
childReference to the child (spending) transaction.