 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
6 #ifndef BITCOIN_NODE_COINSTATS_H
7 #define BITCOIN_NODE_COINSTATS_H
84 #endif // BITCOIN_NODE_COINSTATS_H
static bool GetUTXOStats(CCoinsView *view, BlockManager &blockman, CCoinsStats &stats, T hash_obj, const std::function< void()> &interruption_point, const CBlockIndex *pindex)
Calculate statistics about the unspent transaction output set.
CCoinsStats(CoinStatsHashType hash_type)
bool index_requested
Signals if the coinstatsindex should be used (when available).
uint64_t nTransactionOutputs
CAmount total_prevout_spent_amount
Total cumulative amount of prevouts spent up to and including this block.
std::optional< CAmount > total_amount
The total amount, or nullopt if an overflow occurred calculating it.
CAmount total_unspendables_unclaimed_rewards
Total cumulative amount of coins lost due to unclaimed miner rewards up to and including this block.
uint64_t coins_count
The number of coins contained.
CDataStream TxOutSer(const COutPoint &outpoint, const Coin &coin)
Abstract view on the open txout dataset.
Maintains a tree of blocks (stored in m_block_index) which is consulted to determine where the most-w...
CAmount total_unspendables_scripts
Total cumulative amount of outputs sent to unspendable scripts (OP_RETURN for example) up to and incl...
CAmount total_unspendable_amount
Total cumulative amount of unspendable coins up to and including this block.
int64_t CAmount
Amount in satoshis (Can be negative)
CAmount total_coinbase_amount
Total cumulative amount of coinbase outputs up to and including this block.
CAmount total_unspendables_genesis_block
The unspendable coinbase amount from the genesis block.
Serialized script, used inside transaction inputs and outputs.
CAmount total_subsidy
Total cumulative amount of block subsidies up to and including this block.
const CoinStatsHashType m_hash_type
Which hash type to use.
CAmount total_unspendables_bip30
The two unspendable coinbase outputs total amount caused by BIP30.
CAmount total_new_outputs_ex_coinbase_amount
Total cumulative amount of outputs created up to and including this block.
uint64_t GetBogoSize(const CScript &script_pub_key)
Double ended buffer combining vector and stream-like interfaces.
An outpoint - a combination of a transaction hash and an index n into its vout.
The block chain is a tree shaped structure starting with the genesis block at the root,...
bool index_used
Signals if the coinstatsindex was used to retrieve the statistics.