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

Is thrown only when this library detects POP-related state corruption, and can't recover. More...

Detailed Description

Definition at line 19 of file state_corrupted.hpp.

#include <state_corrupted.hpp>

+ Inheritance diagram for altintegration::StateCorruptedException:
+ Collaboration diagram for altintegration::StateCorruptedException:

Public Member Functions

 StateCorruptedException (const std::string &msg)
 
template<typename Block >
 StateCorruptedException (const BlockIndex< Block > &index, ValidationState &state)
 

Constructor & Destructor Documentation

◆ StateCorruptedException() [1/2]

altintegration::StateCorruptedException::StateCorruptedException ( const std::string &  msg)
inline

Definition at line 20 of file state_corrupted.hpp.

20: std::domain_error(msg) {}

◆ StateCorruptedException() [2/2]

template<typename Block >
altintegration::StateCorruptedException::StateCorruptedException ( const BlockIndex< Block > &  index,
ValidationState state 
)
inline

Definition at line 23 of file state_corrupted.hpp.

25 : StateCorruptedException(
26 format("Error loading payloads from {} block {}, reason={}",
27 Block::name(),
28 index.toPrettyString(),
29 state.toString())) {}

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