Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
babe_error.cpp
Go to the documentation of this file.
1
6
#include "
consensus/babe/babe_error.hpp
"
7
8
OUTCOME_CPP_DEFINE_CATEGORY
(
kagome::consensus
,
BabeError
, e) {
9
using
E =
kagome::consensus::BabeError
;
10
switch
(e) {
11
case
E::TIMER_ERROR:
12
return
"some internal error happened while using the timer in BABE; "
13
"please, see logs"
;
14
case
E::NODE_FALL_BEHIND:
15
return
"local node has fallen too far behind the others, most likely "
16
"it is in one of the previous epochs"
;
17
case
E::MISSING_PROOF:
18
return
"required VRF proof is missing"
;
19
case
E::BAD_ORDER_OF_DIGEST_ITEM:
20
return
"bad order of digest item; PreRuntime must be first"
;
21
case
E::UNKNOWN_DIGEST_TYPE:
22
return
"unknown type of digest"
;
23
}
24
return
"unknown error"
;
25
}
babe_error.hpp
OUTCOME_CPP_DEFINE_CATEGORY
OUTCOME_CPP_DEFINE_CATEGORY(kagome::consensus, BabeError, e)
Definition:
babe_error.cpp:8
kagome::consensus
Definition:
digest_tracker_impl.hpp:16
kagome::consensus::BabeError
BabeError
Definition:
babe_error.hpp:12
core
consensus
babe
babe_error.cpp
Generated by
1.8.11