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

A container for two previous keystones of endorsed block. More...

Detailed Description

A keystone is a block which satisfies a condition isKeystone(block.height) == true.

Definition at line 32 of file keystone_container.hpp.

#include <keystone_container.hpp>

+ Collaboration diagram for altintegration::KeystoneContainer:

Public Member Functions

void toVbkEncoding (WriteStream &stream) const
 
size_t estimateSize () const
 
bool operator== (const KeystoneContainer &o) const
 

Static Public Member Functions

static KeystoneContainer createFromPrevious (const BlockIndex< AltBlock > *prev, const uint32_t keystoneInterval)
 

Public Attributes

std::vector< uint8_t > firstPreviousKeystone
 
std::vector< uint8_t > secondPreviousKeystone
 

Member Function Documentation

◆ operator==()

bool altintegration::KeystoneContainer::operator== ( const KeystoneContainer o) const
inline

Definition at line 43 of file keystone_container.hpp.

43 {
44 return firstPreviousKeystone == o.firstPreviousKeystone &&
45 secondPreviousKeystone == o.secondPreviousKeystone;
46 }

Member Data Documentation

◆ firstPreviousKeystone

std::vector<uint8_t> altintegration::KeystoneContainer::firstPreviousKeystone

Definition at line 33 of file keystone_container.hpp.

◆ secondPreviousKeystone

std::vector<uint8_t> altintegration::KeystoneContainer::secondPreviousKeystone

Definition at line 34 of file keystone_container.hpp.


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