Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
index_util Namespace Reference

Classes

struct  DBHeightKey
struct  DBHashKey

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>
bool index_util::CopyHeightIndexToHashIndex ( CDBIterator & db_it,
CDBBatch & batch,
const std::string & index_name,
int height )
staticnodiscard

Definition at line 72 of file db_key.h.

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

◆ LookUpOne()

template<typename DBVal>
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

uint8_t index_util::DB_BLOCK_HASH {'s'}
staticconstexpr

Definition at line 29 of file db_key.h.

◆ DB_BLOCK_HEIGHT

uint8_t index_util::DB_BLOCK_HEIGHT {'t'}
staticconstexpr

Definition at line 30 of file db_key.h.