Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
CCoinsStats Struct Reference

#include <coinstats.h>

Collaboration diagram for CCoinsStats:
[legend]

Public Member Functions

 CCoinsStats ()=default
 CCoinsStats (int block_height, const uint256 &block_hash)

Public Attributes

int nHeight {0}
uint256 hashBlock {}
uint64_t nTransactions {0}
uint64_t nTransactionOutputs {0}
uint64_t nBogoSize {0}
uint256 hashSerialized {}
uint64_t nDiskSize {0}
std::optional< CAmounttotal_amount {0}
 The total amount, or nullopt if an overflow occurred calculating it.
uint64_t coins_count {0}
 The number of coins contained.
bool index_used {false}
 Signals if the coinstatsindex was used to retrieve the statistics.
CAmount total_subsidy {0}
 Total cumulative amount of block subsidies up to and including this block.
CAmount total_unspendables_genesis_block {0}
 The unspendable coinbase amount from the genesis block.
CAmount total_unspendables_bip30 {0}
 The two unspendable coinbase outputs total amount caused by BIP30.
CAmount total_unspendables_scripts {0}
 Total cumulative amount of outputs sent to unspendable scripts (OP_RETURN for example) up to and including this block.
CAmount total_unspendables_unclaimed_rewards {0}
 Total cumulative amount of coins lost due to unclaimed miner rewards up to and including this block.
arith_uint256 total_prevout_spent_amount {0}
 Total cumulative amount of prevouts spent up to and including this block.
arith_uint256 total_new_outputs_ex_coinbase_amount {0}
 Total cumulative amount of outputs created up to and including this block.
arith_uint256 total_coinbase_amount {0}
 Total cumulative amount of coinbase outputs up to and including this block.

Detailed Description

Definition at line 32 of file coinstats.h.

Constructor & Destructor Documentation

◆ CCoinsStats() [1/2]

◆ CCoinsStats() [2/2]

kernel::CCoinsStats::CCoinsStats ( int block_height,
const uint256 & block_hash )

Definition at line 31 of file coinstats.cpp.

Member Data Documentation

◆ coins_count

The number of coins contained.

Definition at line 44 of file coinstats.h.

◆ hashBlock

Definition at line 34 of file coinstats.h.

◆ hashSerialized

◆ index_used

Signals if the coinstatsindex was used to retrieve the statistics.

Definition at line 47 of file coinstats.h.

◆ nBogoSize

Definition at line 37 of file coinstats.h.

◆ nDiskSize

Definition at line 39 of file coinstats.h.

◆ nHeight

Definition at line 33 of file coinstats.h.

◆ nTransactionOutputs

Definition at line 36 of file coinstats.h.

◆ nTransactions

Definition at line 35 of file coinstats.h.

◆ total_amount

The total amount, or nullopt if an overflow occurred calculating it.

Definition at line 41 of file coinstats.h.

◆ total_coinbase_amount

Total cumulative amount of coinbase outputs up to and including this block.

Definition at line 69 of file coinstats.h.

◆ total_new_outputs_ex_coinbase_amount

Total cumulative amount of outputs created up to and including this block.

Definition at line 67 of file coinstats.h.

◆ total_prevout_spent_amount

Total cumulative amount of prevouts spent up to and including this block.

Definition at line 65 of file coinstats.h.

◆ total_subsidy

Total cumulative amount of block subsidies up to and including this block.

Definition at line 52 of file coinstats.h.

◆ total_unspendables_bip30

The two unspendable coinbase outputs total amount caused by BIP30.

Definition at line 56 of file coinstats.h.

◆ total_unspendables_genesis_block

The unspendable coinbase amount from the genesis block.

Definition at line 54 of file coinstats.h.

◆ total_unspendables_scripts

Total cumulative amount of outputs sent to unspendable scripts (OP_RETURN for example) up to and including this block.

Definition at line 58 of file coinstats.h.

◆ total_unspendables_unclaimed_rewards

Total cumulative amount of coins lost due to unclaimed miner rewards up to and including this block.

Definition at line 60 of file coinstats.h.


The documentation for this struct was generated from the following files: