Bitcoin Core 30.99.0
P2P Digital Currency
Classes | Functions | Variables
index_util Namespace Reference

Classes

struct  DBHashKey
 
struct  DBHeightKey
 

Functions

template<typename DBVal >
static bool CopyHeightIndexToHashIndex (CDBIterator &db_it, CDBBatch &batch, const std::string &index_name, int height)
 
template<typename DBVal >
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'}
 

Function Documentation

◆ CopyHeightIndexToHashIndex()

template<typename DBVal >
static bool index_util::CopyHeightIndexToHashIndex ( CDBIterator db_it,
CDBBatch batch,
const std::string &  index_name,
int  height 
)
static

Definition at line 72 of file db_key.h.

Here is the call graph for this function:

◆ LookUpOne()

template<typename DBVal >
static bool index_util::LookUpOne ( const CDBWrapper db,
const interfaces::BlockRef block,
DBVal &  result 
)
static

Definition at line 96 of file db_key.h.

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

Variable Documentation

◆ DB_BLOCK_HASH

constexpr uint8_t index_util::DB_BLOCK_HASH {'s'}
staticconstexpr

Definition at line 29 of file db_key.h.

◆ DB_BLOCK_HEIGHT

constexpr uint8_t index_util::DB_BLOCK_HEIGHT {'t'}
staticconstexpr

Definition at line 30 of file db_key.h.