cluster_linearize::DepGraph::AddTransaction

Add a new unconnected transaction to this transaction graph (in the first available position), and return its DepGraphIndex.

Synopsis

Declared in <cluster_linearize.h>

DepGraphIndex
AddTransaction(FeeFrac const& feefrac) noexcept;

Description

Complexity: O(1) (amortized, due to resizing of backing vector).

Return Value

The position assigned to the new transaction.

Parameters

NameDescription
feefracThe fee and size of the transaction to add.