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

Container of context info for endorsed block. More...

Detailed Description

Definition at line 19 of file context_info_container.hpp.

#include <context_info_container.hpp>

+ Collaboration diagram for altintegration::ContextInfoContainer:

Public Member Functions

uint256 getHash () const
 
void toVbkEncoding (WriteStream &w) const
 
size_t estimateSize () const
 
bool operator== (const ContextInfoContainer &other) const
 
bool operator!= (const ContextInfoContainer &other) const
 
std::string toPrettyString () const
 

Static Public Member Functions

static ContextInfoContainer createFromPrevious (const BlockIndex< AltBlock > *prev, const AltChainParams &param)
 

Public Attributes

int height = 0
 endorsed block height More...
 
KeystoneContainer keystones {}
 endorsed block previous keystones More...
 

Member Function Documentation

◆ operator!=()

bool altintegration::ContextInfoContainer::operator!= ( const ContextInfoContainer other) const
inline

Definition at line 38 of file context_info_container.hpp.

38 {
39 return !(this->operator==(other));
40 }

◆ operator==()

bool altintegration::ContextInfoContainer::operator== ( const ContextInfoContainer other) const
inline

Definition at line 34 of file context_info_container.hpp.

34 {
35 return height == other.height && keystones == other.keystones;
36 }
KeystoneContainer keystones
endorsed block previous keystones

Member Data Documentation

◆ height

int altintegration::ContextInfoContainer::height = 0

Definition at line 21 of file context_info_container.hpp.

◆ keystones

KeystoneContainer altintegration::ContextInfoContainer::keystones {}

Definition at line 24 of file context_info_container.hpp.


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