Bitcoin Core  0.15.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)
 
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 126 of file block.h.

Constructor & Destructor Documentation

CBlockLocator::CBlockLocator ( )
inline

Definition at line 130 of file block.h.

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

Definition at line 132 of file block.h.

Member Function Documentation

bool CBlockLocator::IsNull ( ) const
inline

Definition at line 149 of file block.h.

Here is the caller graph for this function:

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

Definition at line 137 of file block.h.

void CBlockLocator::SetNull ( )
inline

Definition at line 144 of file block.h.

Member Data Documentation

CBlockLocator::ADD_SERIALIZE_METHODS

Definition at line 134 of file block.h.

std::vector<uint256> CBlockLocator::vHave

Definition at line 128 of file block.h.


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