Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

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< uint256vHave
 
 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.

Definition at line 127 of file block.h.

Constructor & Destructor Documentation

◆ CBlockLocator() [1/2]

CBlockLocator::CBlockLocator ( )
inline

Definition at line 131 of file block.h.

◆ CBlockLocator() [2/2]

CBlockLocator::CBlockLocator ( const std::vector< uint256 > &  vHaveIn)
inlineexplicit

Definition at line 133 of file block.h.

Member Function Documentation

◆ IsNull()

bool CBlockLocator::IsNull ( ) const
inline

Definition at line 150 of file block.h.

References vHave.

Referenced by ProcessMessage().

◆ SerializationOp()

template<typename Stream , typename Operation >
void CBlockLocator::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 138 of file block.h.

References READWRITE, SER_GETHASH, and vHave.

◆ SetNull()

void CBlockLocator::SetNull ( )
inline

Definition at line 145 of file block.h.

References vHave.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CBlockLocator::ADD_SERIALIZE_METHODS

Definition at line 135 of file block.h.

◆ vHave

std::vector<uint256> CBlockLocator::vHave

The documentation for this struct was generated from the following file:
Released under the MIT license