kernel::CCoinsStats

Aggregate statistics computed over the UTXO set.

Synopsis

Declared in <kernel/coinstats.h>

struct CCoinsStats;

Member Functions

NameDescription
CCoinsStats [constructor]Constructors

Data Members

NameDescription
coins_count The number of coins contained.
hashBlock Hash of the block the statistics were computed at.
hashSerialized Hash of the serialized UTXO set.
index_used Signals if the coinstatsindex was used to retrieve the statistics.
nBogoSize Serialization-agnostic size measure of the UTXO set.
nDiskSize Size of the UTXO set on disk in bytes.
nHeight Block height the statistics were computed at.
nTransactionOutputs Number of unspent transaction outputs.
nTransactions Number of transactions with unspent outputs.
total_amount The total amount, or nullopt if an overflow occurred calculating it
total_coinbase_amount Total cumulative amount of coinbase outputs up to and including this block
total_new_outputs_ex_coinbase_amount Total cumulative amount of outputs created up to and including this block
total_prevout_spent_amount Total cumulative amount of prevouts spent up to and including this block
total_subsidy Total cumulative amount of block subsidies up to and including this block
total_unspendables_bip30 The two unspendable coinbase outputs total amount caused by BIP30
total_unspendables_genesis_block The unspendable coinbase amount from the genesis block
total_unspendables_scripts Total cumulative amount of outputs sent to unspendable scripts (OP_RETURN for example) up to and including this block
total_unspendables_unclaimed_rewards Total cumulative amount of coins lost due to unclaimed miner rewards up to and including this block

Non-Member Functions

NameDescription
ComputeUTXOStatsComputes aggregate statistics over the UTXO set.