Bitcoin Core  0.20.99
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< uint256 > &vHaveIn)
 
 SERIALIZE_METHODS (CBlockLocator, obj)
 
void SetNull ()
 
bool IsNull () const
 

Public Attributes

std::vector< uint256vHave
 

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

Constructor & Destructor Documentation

◆ CBlockLocator() [1/2]

CBlockLocator::CBlockLocator ( )
inline

Definition at line 118 of file block.h.

◆ CBlockLocator() [2/2]

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

Definition at line 120 of file block.h.

Member Function Documentation

◆ IsNull()

bool CBlockLocator::IsNull ( ) const
inline

Definition at line 135 of file block.h.

Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

CBlockLocator::SERIALIZE_METHODS ( CBlockLocator  ,
obj   
)
inline

Definition at line 122 of file block.h.

◆ SetNull()

void CBlockLocator::SetNull ( )
inline

Definition at line 130 of file block.h.

Here is the caller graph for this function:

Member Data Documentation

◆ vHave

std::vector<uint256> CBlockLocator::vHave

Definition at line 116 of file block.h.


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