Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Kagome
Consensus
core
Development guide
Guide for `outcome::result<T>`
Rules
Terms
Tooling
Overview
Your first Kagome chain
Runing Kagome in docker container
Start private Kagome network
Namespaces
Classes
Files
File List
core
api
application
assets
authority_discovery
authorship
blockchain
clock
common
consensus
authority
babe
grandpa
impl
vote_graph
vote_graph_error.cpp
vote_graph_error.hpp
vote_graph_impl.cpp
vote_graph_impl.hpp
catch_up_observer.hpp
chain.hpp
common.hpp
environment.hpp
grandpa.hpp
grandpa_config.hpp
grandpa_context.hpp
grandpa_observer.hpp
justification_observer.hpp
movable_round_state.hpp
neighbor_observer.hpp
round_observer.hpp
structs.hpp
vote_crypto_provider.hpp
vote_graph.hpp
vote_tracker.hpp
vote_types.hpp
vote_weight.hpp
voter_set.cpp
voter_set.hpp
voting_round.hpp
voting_round_error.cpp
voting_round_error.hpp
validation
constants.hpp
containers
crypto
filesystem
host_api
injector
log
macro
metrics
network
offchain
outcome
parachain
primitives
runtime
scale
storage
subscription
telemetry
transaction_pool
utils
docs
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
vote_graph_error.cpp
Go to the documentation of this file.
1
6
#include "
consensus/grandpa/vote_graph/vote_graph_error.hpp
"
7
8
9
OUTCOME_CPP_DEFINE_CATEGORY
(
kagome::consensus::grandpa
,
VoteGraphError
, e) {
10
using
E =
kagome::consensus::grandpa::VoteGraphError
;
11
switch
(e) {
12
case
E::RECEIVED_BLOCK_LESS_THAN_BASE
:
13
return
"Received block has smaller height than base in graph"
;
14
}
15
return
"Unknown error (invalid VoteGraphError)"
;
16
}
kagome::consensus::grandpa
Definition:
catch_up_observer.hpp:13
vote_graph_error.hpp
OUTCOME_CPP_DEFINE_CATEGORY
OUTCOME_CPP_DEFINE_CATEGORY(kagome::consensus::grandpa, VoteGraphError, e)
Definition:
vote_graph_error.cpp:9
kagome::consensus::grandpa::VoteGraphError
VoteGraphError
Definition:
vote_graph_error.hpp:13
kagome::consensus::grandpa::RECEIVED_BLOCK_LESS_THAN_BASE
Definition:
vote_graph_error.hpp:14
core
consensus
grandpa
vote_graph
vote_graph_error.cpp
Generated by
1.8.11