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

Synopsis

Declared in <index/db_key.h>

struct DBHeightKey;

Member Functions

Name

Description

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

Name

Description

height

Block height this key refers to.

Created with MrDocs