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

Name

Description

DBVal

Type of the value stored for the entry.

Parameters

Name

Description

db

Database to read from.

block

Reference identifying the block to look up.

result

Set to the value that was found.

Created with MrDocs