Kagome
Polkadot Runtime Engine in C++17
kagome::primitives::DecodedConsensusMessage Struct Reference

#include <digest.hpp>

Collaboration diagram for kagome::primitives::DecodedConsensusMessage:

Public Member Functions

const BabeDigestasBabeDigest () const
 
template<typename T >
bool isBabeDigestOf () const
 
const GrandpaDigestasGrandpaDigest () const
 
template<typename T >
bool isGrandpaDigestOf () const
 

Static Public Member Functions

static outcome::result< DecodedConsensusMessagecreate (ConsensusEngineId engine_id, const common::Buffer &data)
 

Public Attributes

ConsensusEngineId consensus_engine_id
 
boost::variant< BabeDigest, GrandpaDigest, UnsupportedDigest_POL1, UnsupportedDigest_BEEFdigest {}
 

Private Member Functions

 DecodedConsensusMessage ()=default
 

Detailed Description

Definition at line 78 of file digest.hpp.

Constructor & Destructor Documentation

kagome::primitives::DecodedConsensusMessage::DecodedConsensusMessage ( )
privatedefault

Member Function Documentation

const BabeDigest& kagome::primitives::DecodedConsensusMessage::asBabeDigest ( ) const
inline

Definition at line 98 of file digest.hpp.

const GrandpaDigest& kagome::primitives::DecodedConsensusMessage::asGrandpaDigest ( ) const
inline

Definition at line 109 of file digest.hpp.

static outcome::result<DecodedConsensusMessage> kagome::primitives::DecodedConsensusMessage::create ( ConsensusEngineId  engine_id,
const common::Buffer data 
)
inlinestatic

Definition at line 79 of file digest.hpp.

template<typename T >
bool kagome::primitives::DecodedConsensusMessage::isBabeDigestOf ( ) const
inline

Definition at line 104 of file digest.hpp.

template<typename T >
bool kagome::primitives::DecodedConsensusMessage::isGrandpaDigestOf ( ) const
inline

Definition at line 115 of file digest.hpp.

Member Data Documentation

ConsensusEngineId kagome::primitives::DecodedConsensusMessage::consensus_engine_id

Definition at line 120 of file digest.hpp.

boost::variant<BabeDigest, GrandpaDigest, UnsupportedDigest_POL1, UnsupportedDigest_BEEF> kagome::primitives::DecodedConsensusMessage::digest {}

Definition at line 125 of file digest.hpp.


The documentation for this struct was generated from the following file: