Kagome
Polkadot Runtime Engine in C++17
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,
19  // target block number is past the given maximum number
21  // block resides on a dead fork
23  // block exists in chain but not found when following all
24  // leaves backwards
26  // non-finalized block is not found
28  // justification is not found in block storage
30  // block body is not found in block storage
32  // block header is not found in block storage
34  // some block in the requested chain is missing
36  // block is not a leaf
38  };
39 } // namespace kagome::blockchain
40 
42 
43 #endif // KAGOME_BLOCK_TREE_ERROR_HPP
OUTCOME_HPP_DECLARE_ERROR(kagome::api, JRpcServerImpl::Error)