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

A container for Bitcoin and Veriblock configuration data. More...

Detailed Description

Definition at line 37 of file config.hpp.

#include <config.hpp>

+ Collaboration diagram for altintegration::Config:

Classes

struct  Bootstrap
 per-chain bootstrap config More...
 

Public Member Functions

const BtcChainParamsgetBtcParams () const
 
const VbkChainParamsgetVbkParams () const
 
const AltChainParamsgetAltParams () const
 
void validate () const
 Validates config instance. More...
 
void SelectBtcParams (std::string net, int startHeight, const std::vector< std::string > &blocks)
 
void SelectVbkParams (std::string net, int startHeight, const std::vector< std::string > &blocks)
 
void SelectAltParams (std::shared_ptr< AltChainParams > param)
 
void setBTC (int32_t start, const std::vector< std::string > &hexblocks, std::shared_ptr< BtcChainParams > params)
 helper, which converts array of hexstrings (blocks) into "Bootstrap" type
 
void setVBK (int32_t start, const std::vector< std::string > &hexblocks, std::shared_ptr< VbkChainParams > params)
 helper, which converts array of hexstrings (blocks) into "Bootstrap" type
 

Public Attributes

std::shared_ptr< AltChainParamsalt
 
Bootstrap< BtcBlock, BtcChainParamsbtc
 
Bootstrap< VbkBlock, VbkChainParamsvbk
 

Member Function Documentation

◆ validate()

void altintegration::Config::validate ( ) const

Throws on errors.

Exceptions
std::invalid_argumentwith a message, if something is wrong.

Member Data Documentation

◆ alt

std::shared_ptr<AltChainParams> altintegration::Config::alt

Definition at line 74 of file config.hpp.

◆ btc

Bootstrap<BtcBlock, BtcChainParams> altintegration::Config::btc

Definition at line 75 of file config.hpp.

◆ vbk

Bootstrap<VbkBlock, VbkChainParams> altintegration::Config::vbk

Definition at line 76 of file config.hpp.


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