veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
altintegration::btc::BlockLocator Struct Reference

Detailed Description

Definition at line 82 of file block.hpp.

+ Collaboration diagram for altintegration::btc::BlockLocator:

Public Member Functions

 BlockLocator (const std::vector< uint256 > &vHave)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 

Public Attributes

std::vector< uint256vHave
 
 ADD_SERIALIZE_METHODS
 

Friends

bool operator== (const BlockLocator &a, const BlockLocator &b)
 
bool operator!= (const BlockLocator &a, const BlockLocator &b)
 

Constructor & Destructor Documentation

◆ BlockLocator()

altintegration::btc::BlockLocator::BlockLocator ( const std::vector< uint256 > &  vHave)
inline

Definition at line 87 of file block.hpp.

87: vHave(vHave) {}

Member Function Documentation

◆ SerializationOp()

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

Definition at line 92 of file block.hpp.

92 {
93 int nVersion = s.getVersion();
94 READWRITE(nVersion);
95 READWRITE(vHave);
96 }

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const BlockLocator a,
const BlockLocator b 
)
friend

Definition at line 102 of file block.hpp.

102 {
103 return !(a == b);
104 }

◆ operator==

bool operator== ( const BlockLocator a,
const BlockLocator b 
)
friend

Definition at line 98 of file block.hpp.

98 {
99 return a.vHave == b.vHave;
100 }

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

altintegration::btc::BlockLocator::ADD_SERIALIZE_METHODS

Definition at line 89 of file block.hpp.

◆ vHave

std::vector<uint256> altintegration::btc::BlockLocator::vHave

Definition at line 83 of file block.hpp.


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