Kagome
Polkadot Runtime Engine in C++17
babe_digests_util.hpp File Reference
#include <memory>
#include <optional>
#include "common/visitor.hpp"
#include "consensus/babe/types/babe_block_header.hpp"
#include "consensus/babe/types/epoch_digest.hpp"
#include "consensus/babe/types/seal.hpp"
#include "outcome/outcome.hpp"
#include "primitives/block.hpp"
Include dependency graph for babe_digests_util.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 kagome::consensus
 

Enumerations

enum  kagome::consensus::DigestError { kagome::consensus::DigestError::REQUIRED_DIGESTS_NOT_FOUND = 1, kagome::consensus::DigestError::NO_TRAILING_SEAL_DIGEST, kagome::consensus::DigestError::MULTIPLE_EPOCH_CHANGE_DIGESTS, kagome::consensus::DigestError::NEXT_EPOCH_DIGEST_DOES_NOT_EXIST }
 

Functions

template<typename T , typename VarT >
std::optional< std::reference_wrapper< const std::decay_t< T > > > kagome::consensus::getFromVariant (VarT &&v)
 
outcome::result< std::pair< Seal, BabeBlockHeader > > kagome::consensus::getBabeDigests (const primitives::BlockHeader &block_header)
 
outcome::result< EpochDigest > kagome::consensus::getNextEpochDigest (const primitives::BlockHeader &header)