Kagome
Polkadot Runtime Engine in C++17
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
block_tree_error.hpp
Go to the documentation of this file.
1
6
#ifndef KAGOME_BLOCK_TREE_ERROR_HPP
7
#define KAGOME_BLOCK_TREE_ERROR_HPP
8
9
#include <
outcome/outcome.hpp
>
10
11
namespace
kagome::blockchain
{
16
enum class
BlockTreeError
{
17
NO_PARENT
= 1,
18
BLOCK_EXISTS
,
19
// target block number is past the given maximum number
20
TARGET_IS_PAST_MAX
,
21
// block resides on a dead fork
22
BLOCK_ON_DEAD_END
,
23
// block exists in chain but not found when following all
24
// leaves backwards
25
EXISTING_BLOCK_NOT_FOUND
,
26
// non-finalized block is not found
27
NON_FINALIZED_BLOCK_NOT_FOUND
,
28
// justification is not found in block storage
29
JUSTIFICATION_NOT_FOUND
,
30
// block body is not found in block storage
31
BODY_NOT_FOUND
,
32
// block header is not found in block storage
33
HEADER_NOT_FOUND
,
34
// some block in the requested chain is missing
35
SOME_BLOCK_IN_CHAIN_NOT_FOUND
,
36
// block is not a leaf
37
BLOCK_IS_NOT_LEAF
38
};
39
}
// namespace kagome::blockchain
40
41
OUTCOME_HPP_DECLARE_ERROR
(
kagome::blockchain
,
BlockTreeError
)
42
43
#endif // KAGOME_BLOCK_TREE_ERROR_HPP
kagome::blockchain::BlockTreeError::BLOCK_ON_DEAD_END
kagome::blockchain::BlockTreeError::HEADER_NOT_FOUND
kagome::blockchain::BlockTreeError::BODY_NOT_FOUND
outcome.hpp
kagome::blockchain::BlockStorageError::BLOCK_EXISTS
OUTCOME_HPP_DECLARE_ERROR
OUTCOME_HPP_DECLARE_ERROR(kagome::api, JRpcServerImpl::Error)
kagome::blockchain::BlockTreeError::NO_PARENT
kagome::blockchain::BlockTreeError::NON_FINALIZED_BLOCK_NOT_FOUND
kagome::blockchain::BlockTreeError::JUSTIFICATION_NOT_FOUND
kagome::blockchain::BlockTreeError
BlockTreeError
Definition:
block_tree_error.hpp:16
kagome::blockchain::BlockTreeError::BLOCK_IS_NOT_LEAF
kagome::blockchain::BlockTreeError::SOME_BLOCK_IN_CHAIN_NOT_FOUND
kagome::blockchain
Definition:
author_api_impl.hpp:28
kagome::blockchain::BlockTreeError::EXISTING_BLOCK_NOT_FOUND
kagome::blockchain::BlockTreeError::TARGET_IS_PAST_MAX
core
blockchain
block_tree_error.hpp
Generated by
1.8.11