Bitcoin Core  21.99.0
P2P Digital Currency
Functions | Variables
coinstatsindex.cpp File Reference
#include <chainparams.h>
#include <coins.h>
#include <crypto/muhash.h>
#include <index/coinstatsindex.h>
#include <node/blockstorage.h>
#include <serialize.h>
#include <txdb.h>
#include <undo.h>
#include <validation.h>
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 start_height, int stop_height)
 
static bool LookUpOne (const CDBWrapper &db, const CBlockIndex *block_index, 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  start_height,
int  stop_height 
)
static

Definition at line 225 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 CBlockIndex block_index,
DBVal &  result 
)
static

Definition at line 289 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 15 of file coinstatsindex.cpp.

◆ DB_BLOCK_HEIGHT

constexpr uint8_t DB_BLOCK_HEIGHT {'t'}
staticconstexpr

Definition at line 16 of file coinstatsindex.cpp.

◆ DB_MUHASH

constexpr uint8_t DB_MUHASH {'M'}
staticconstexpr

Definition at line 17 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 94 of file coinstatsindex.cpp.