index_util::DBHeightKey

Database key for an index entry looked up by block height.

Synopsis

Declared in <index/db_key.h>

struct DBHeightKey;

Member Functions

NameDescription
DBHeightKey [constructor]Construct a height key for the given block height.
Serialize Serialize the key as a prefix byte followed by the big-endian height.
Unserialize Read the key back, verifying the prefix and decoding the height.

Data Members

NameDescription
height Block height this key refers to.