Skip to content

src/primitives/check_inherents_result.hpp

Namespaces

Name
sgns
sgns::primitives

Classes

Name
struct sgns::primitives::CheckInherentsResult
result of check_inherents method of BlockBuilder runtime api

Functions

Name
template <class Stream ,typename =std::enable_if_t>
Stream &
operator>>(Stream & s, CheckInherentsResult & v)

Functions Documentation

function operator>>

template <class Stream ,
typename  =std::enable_if_t<Stream::is_decoder_stream>>
Stream & operator>>(
    Stream & s,
    CheckInherentsResult & v
)

Source code

#ifndef SUPERGENIUS_SRC_PRIMITIVES_CHECK_INHERENTS_RESULT_HPP
#define SUPERGENIUS_SRC_PRIMITIVES_CHECK_INHERENTS_RESULT_HPP

#include "primitives/inherent_data.hpp"

namespace sgns::primitives {
  struct CheckInherentsResult {
    bool is_okay = false;
    bool is_fatal_error = false;
    primitives::InherentData errors;
  };

  template <class Stream,
            typename = std::enable_if_t<Stream::is_decoder_stream>>
  Stream &operator>>(Stream &s, CheckInherentsResult &v) {
    return s >> v.is_okay >> v.is_fatal_error >> v.errors;
  }

}  // namespace sgns::primitives

#endif  // SUPERGENIUS_SRC_PRIMITIVES_CHECK_INHERENTS_RESULT_HPP

Updated on 2026-03-04 at 13:10:44 -0800