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.
Declared in <txgraph.h>
virtual
void
AddDependency(
Ref const& parent,
Ref const& child) noexcept = 0;
| Name | Description |
|---|---|
| parent | Reference to the parent (spent-from) transaction. |
| child | Reference to the child (spending) transaction. |