Kagome
Polkadot Runtime Engine in C++17
check_inherents_result.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_PRIMITIVES_CHECK_INHERENTS_RESULT_HPP
7 #define KAGOME_CORE_PRIMITIVES_CHECK_INHERENTS_RESULT_HPP
8 
10 
11 namespace kagome::primitives {
17  bool is_okay = false;
19  bool is_fatal_error = false;
22  };
23 
24  template <class Stream,
25  typename = std::enable_if_t<Stream::is_decoder_stream>>
27  return s >> v.is_okay >> v.is_fatal_error >> v.errors;
28  }
29 
30 } // namespace kagome::primitives
31 
32 #endif // KAGOME_CORE_PRIMITIVES_CHECK_INHERENTS_RESULT_HPP
primitives::InherentData errors
We use the InherentData to store our errors.
bool is_fatal_error
Did we encounter a fatal error?
Stream & operator>>(Stream &s, ArithmeticError &v)
libp2p::connection::Stream Stream
result of check_inherents method of BlockBuilder runtime api