Look up a single index entry for a block, trying the height index then the hash index.
Declared in <index/db_key.h>
template<typename DBVal>
static
bool
LookUpOne(
CDBWrapper const& db,
interfaces::BlockRef const& block,
DBVal& result);
True if an entry for the block was found.
| Name | Description |
|---|---|
| DBVal | Type of the value stored for the entry. |
| Name | Description |
|---|---|
| db | Database to read from. |
| block | Reference identifying the block to look up. |
| result | Set to the value that was found. |