Bitcoin Core 30.99.0
P2P Digital Currency
Functions | Variables
coinstatsindex.cpp File Reference
#include <index/coinstatsindex.h>
#include <arith_uint256.h>
#include <chain.h>
#include <chainparams.h>
#include <coins.h>
#include <common/args.h>
#include <consensus/amount.h>
#include <crypto/muhash.h>
#include <dbwrapper.h>
#include <index/base.h>
#include <interfaces/chain.h>
#include <interfaces/types.h>
#include <kernel/coinstats.h>
#include <logging.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <script/script.h>
#include <serialize.h>
#include <uint256.h>
#include <undo.h>
#include <util/check.h>
#include <util/fs.h>
#include <validation.h>
#include <compare>
#include <ios>
#include <limits>
#include <span>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for coinstatsindex.cpp:

Go to the source code of this file.

Functions

static bool CopyHeightIndexToHashIndex (CDBIterator &db_it, CDBBatch &batch, const std::string &index_name, int height)
 
static bool LookUpOne (const CDBWrapper &db, const interfaces::BlockRef &block, DBVal &result)
 

Variables

static constexpr uint8_t DB_BLOCK_HASH {'s'}
 
static constexpr uint8_t DB_BLOCK_HEIGHT {'t'}
 
static constexpr uint8_t DB_MUHASH {'M'}
 
std::unique_ptr< CoinStatsIndexg_coin_stats_index
 The global UTXO set hash object. More...
 

Function Documentation

◆ CopyHeightIndexToHashIndex()

static bool CopyHeightIndexToHashIndex ( CDBIterator db_it,
CDBBatch batch,
const std::string &  index_name,
int  height 
)
static

Definition at line 260 of file coinstatsindex.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LookUpOne()

static bool LookUpOne ( const CDBWrapper db,
const interfaces::BlockRef block,
DBVal &  result 
)
static

Definition at line 303 of file coinstatsindex.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ DB_BLOCK_HASH

constexpr uint8_t DB_BLOCK_HASH {'s'}
staticconstexpr

Definition at line 43 of file coinstatsindex.cpp.

◆ DB_BLOCK_HEIGHT

constexpr uint8_t DB_BLOCK_HEIGHT {'t'}
staticconstexpr

Definition at line 44 of file coinstatsindex.cpp.

◆ DB_MUHASH

constexpr uint8_t DB_MUHASH {'M'}
staticconstexpr

Definition at line 45 of file coinstatsindex.cpp.

◆ g_coin_stats_index

std::unique_ptr<CoinStatsIndex> g_coin_stats_index

The global UTXO set hash object.

Definition at line 131 of file coinstatsindex.cpp.