Describes a place in the block chain to another node such that if the other node doesn't have the same branch, it can find a recent common trunk. The further back it is, the further before the fork it may be.
Declared in <primitives/block.h>
struct CBlockLocator;
| Name | Description |
|---|---|
CBlockLocator [constructor] | Constructors |
IsNull | Returns true when the locator holds no block hashes. |
SetNull | Clears the locator, leaving it empty. |
| Name | Description |
|---|---|
vHave | Block hashes, from newest to oldest, with exponentially increasing gaps. |
| 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. |
| Name | Description |
|---|---|
GetLocator | Get a locator for a block index entry. |