index_util::LookUpOne

Look up a single index entry for a block, trying the height index then the hash index.

Synopsis

Declared in <index/db_key.h>

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

Return Value

True if an entry for the block was found.

Template Parameters

NameDescription
DBValType of the value stored for the entry.

Parameters

NameDescription
dbDatabase to read from.
blockReference identifying the block to look up.
resultSet to the value that was found.