Bitcoin Core 28.99.0
P2P Digital Currency
Functions | Variables
coinstatsindex.cpp File Reference
#include <chainparams.h>
#include <coins.h>
#include <common/args.h>
#include <crypto/muhash.h>
#include <index/coinstatsindex.h>
#include <kernel/coinstats.h>
#include <logging.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 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  start_height,
int  stop_height 
)
static

Definition at line 240 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 307 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 23 of file coinstatsindex.cpp.

◆ DB_BLOCK_HEIGHT

constexpr uint8_t DB_BLOCK_HEIGHT {'t'}
staticconstexpr

Definition at line 24 of file coinstatsindex.cpp.

◆ DB_MUHASH

constexpr uint8_t DB_MUHASH {'M'}
staticconstexpr

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