veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
|
A container for Bitcoin and Veriblock configuration data. More...
Definition at line 37 of file config.hpp.
#include <config.hpp>
Classes | |
struct | Bootstrap |
per-chain bootstrap config More... | |
Public Member Functions | |
const BtcChainParams & | getBtcParams () const |
const VbkChainParams & | getVbkParams () const |
const AltChainParams & | getAltParams () 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< AltChainParams > | alt |
Bootstrap< BtcBlock, BtcChainParams > | btc |
Bootstrap< VbkBlock, VbkChainParams > | vbk |
void altintegration::Config::validate | ( | ) | const |
Throws on errors.
std::invalid_argument | with a message, if something is wrong. |
std::shared_ptr<AltChainParams> altintegration::Config::alt |
Definition at line 74 of file config.hpp.
Bootstrap<BtcBlock, BtcChainParams> altintegration::Config::btc |
Definition at line 75 of file config.hpp.
Bootstrap<VbkBlock, VbkChainParams> altintegration::Config::vbk |
Definition at line 76 of file config.hpp.