Class UTXOTracker

Tracks a set of UTXO according to an inclusion criteria

class UTXOTracker ;

An abstract base class that can be used to track UTXOs, e.g. to track UTXOs belonging to a set of keys, or matching a certain value.

Fields

NameTypeDescription
data_ Set!(agora.consensus.state.Ledger.UTXOTracker.Tracked)The underlying data

Methods

NameDescription
data ()
externalize (block, onRemoved) Process all transactions in this Block
externalize (tx, onRemoved) Process all inputs and outputs in this Transaction
externalize (hash, output) Process a single Output
include (hash, utxo) Implement this as the inclusion criteria

Inner structs

NameDescription
Tracked Type of data we keep track of