Bitcoin ABC 0.30.7
P2P Digital Currency
Functions | Variables
coinstatsindex.cpp File Reference
#include <index/coinstatsindex.h>
#include <chainparams.h>
#include <coins.h>
#include <common/args.h>
#include <consensus/amount.h>
#include <crypto/muhash.h>
#include <logging.h>
#include <node/blockstorage.h>
#include <primitives/blockhash.h>
#include <serialize.h>
#include <txdb.h>
#include <undo.h>
#include <util/check.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 257 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 323 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 25 of file coinstatsindex.cpp.

◆ DB_BLOCK_HEIGHT

constexpr uint8_t DB_BLOCK_HEIGHT {'t'}
staticconstexpr

Definition at line 26 of file coinstatsindex.cpp.

◆ DB_MUHASH

constexpr uint8_t DB_MUHASH {'M'}
staticconstexpr

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