Compact description of a chain, used to locate a fork point with a peer or on disk.

Synopsis

Declared in <primitives/block.h>

struct CBlockLocator;

Member Functions

Name

Description

CBlockLocator [constructor]

Constructors

IsNull

Returns true when the locator holds no block hashes.

SetNull

Clears the locator, leaving it empty.

Data Members

Name

Description

vHave

Block hashes, from newest to oldest, with exponentially increasing gaps.

Static Data Members

Name

Description

DUMMY_VERSION

Historically CBlockLocator's version field has been written to network streams as the negotiated protocol version and to disk streams as the client version, but the value has never been used.

Non-Member Functions

Name

Description

GetLocator

Get a locator for a block index entry.

Created with MrDocs