Bitcoin
Public Member Functions | Public Attributes | List of all members
CBlockLocator Struct Reference

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

Constructor & Destructor Documentation

◆ CBlockLocator() [1/2]

CBlockLocator::CBlockLocator ( )
inline

◆ CBlockLocator() [2/2]

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

Member Function Documentation

◆ IsNull()

bool CBlockLocator::IsNull ( ) const
inline

◆ SerializationOp()

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

◆ SetNull()

void CBlockLocator::SetNull ( )
inline

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CBlockLocator::ADD_SERIALIZE_METHODS

◆ vHave

std::vector<uint256> CBlockLocator::vHave

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