Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
CBlockLocator Struct Reference
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. More...
#include <block.h>
Public Member Functions | |
CBlockLocator () | |
CBlockLocator (const std::vector< uint256 > &vHaveIn) | |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action) |
void | SetNull () |
bool | IsNull () const |
Public Attributes | |
std::vector< uint256 > | vHave |
ADD_SERIALIZE_METHODS | |
Detailed Description
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.
Constructor & Destructor Documentation
◆ CBlockLocator() [1/2]
◆ CBlockLocator() [2/2]
|
inlineexplicit |
Member Function Documentation
◆ IsNull()
|
inline |
◆ SerializationOp()
template<typename Stream , typename Operation >
|
inline |
Definition at line 138 of file block.h.
References READWRITE, SER_GETHASH, and vHave.
◆ SetNull()
Member Data Documentation
◆ ADD_SERIALIZE_METHODS
◆ vHave
std::vector<uint256> CBlockLocator::vHave |
Definition at line 129 of file block.h.
Referenced by FindForkInGlobalIndex(), IsNull(), WalletBatch::ReadBestBlock(), RecursiveDynamicUsage(), SerializationOp(), and SetNull().
The documentation for this struct was generated from the following file:
- src/primitives/block.h