Bitcoin ABC  0.28.12
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
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< BlockHash > &vHaveIn)
 
 SERIALIZE_METHODS (CBlockLocator, obj)
 
void SetNull ()
 
bool IsNull () const
 

Public Attributes

std::vector< BlockHashvHave
 

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 105 of file block.h.

Constructor & Destructor Documentation

◆ CBlockLocator() [1/2]

CBlockLocator::CBlockLocator ( )
inline

Definition at line 108 of file block.h.

◆ CBlockLocator() [2/2]

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

Definition at line 110 of file block.h.

Member Function Documentation

◆ IsNull()

bool CBlockLocator::IsNull ( ) const
inline

Definition at line 123 of file block.h.

Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

CBlockLocator::SERIALIZE_METHODS ( CBlockLocator  ,
obj   
)
inline

Definition at line 113 of file block.h.

◆ SetNull()

void CBlockLocator::SetNull ( )
inline

Definition at line 121 of file block.h.

Here is the caller graph for this function:

Member Data Documentation

◆ vHave

std::vector<BlockHash> CBlockLocator::vHave

Definition at line 106 of file block.h.


The documentation for this struct was generated from the following file: