 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
5 #ifndef BITCOIN_INDEX_COINSTATSINDEX_H
6 #define BITCOIN_INDEX_COINSTATSINDEX_H
21 std::unique_ptr<BaseIndex::DB>
m_db;
48 const char*
GetName()
const override {
return "coinstatsindex"; }
52 explicit CoinStatsIndex(
size_t n_cache_size,
bool f_memory =
false,
bool f_wipe =
false);
61 #endif // BITCOIN_INDEX_COINSTATSINDEX_H
CAmount m_total_unspendable_amount
CAmount m_total_unspendables_bip30
const char * GetName() const override
Get the name of the index for display in logs.
bool WriteBlock(const CBlock &block, const CBlockIndex *pindex) override
Write update index entries for a newly connected block.
CAmount m_total_unspendables_genesis_block
Base class for indices of blockchain data.
std::unique_ptr< BaseIndex::DB > m_db
CAmount m_total_new_outputs_ex_coinbase_amount
bool LookUpStats(const CBlockIndex *block_index, node::CCoinsStats &coins_stats) const
bool Rewind(const CBlockIndex *current_tip, const CBlockIndex *new_tip) override
Rewind index to an earlier chain tip during a chain reorg.
BaseIndex::DB & GetDB() const override
bool Init() override
Initialize internal state from the database and block index.
int64_t CAmount
Amount in satoshis (Can be negative)
std::unique_ptr< CoinStatsIndex > g_coin_stats_index
The global UTXO set hash object.
CoinStatsIndex(size_t n_cache_size, bool f_memory=false, bool f_wipe=false)
CAmount m_total_unspendables_unclaimed_rewards
CAmount m_total_unspendables_scripts
The database stores a block locator of the chain the database is synced to so that the index can effi...
CAmount m_total_coinbase_amount
CoinStatsIndex maintains statistics on the UTXO set.
bool ReverseBlock(const CBlock &block, const CBlockIndex *pindex)
uint64_t m_transaction_output_count
The block chain is a tree shaped structure starting with the genesis block at the root,...
CAmount m_total_prevout_spent_amount
A class representing MuHash sets.