Kagome
Polkadot Runtime Engine in C++17
babe_configuration.hpp File Reference
#include <fmt/core.h>
#include "common/blob.hpp"
#include "consensus/babe/common.hpp"
#include "crypto/sr25519_types.hpp"
#include "primitives/authority.hpp"
Include dependency graph for babe_configuration.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kagome::primitives::BabeConfiguration
 Configuration data used by the BABE consensus engine. More...
 

Namespaces

 kagome::primitives
 

Typedefs

using kagome::primitives::BabeSlotNumber = uint64_t
 
using kagome::primitives::BabeClock = clock::SystemClock
 
using kagome::primitives::BabeDuration = BabeClock::Duration
 
using kagome::primitives::Randomness = common::Blob< crypto::constants::sr25519::vrf::OUTPUT_SIZE >
 

Enumerations

enum  kagome::primitives::AllowedSlots : uint8_t { kagome::primitives::AllowedSlots::PrimaryOnly, kagome::primitives::AllowedSlots::PrimaryAndSecondaryPlain, kagome::primitives::AllowedSlots::PrimaryAndSecondaryVRF }
 

Functions

std::string_view kagome::primitives::to_string (AllowedSlots s)
 
template<class Stream , typename = std::enable_if_t<Stream::is_encoder_stream>>
Stream & kagome::primitives::operator<< (Stream &s, const BabeConfiguration &config)
 
template<class Stream , typename = std::enable_if_t<Stream::is_decoder_stream>>
Stream & kagome::primitives::operator>> (Stream &s, BabeConfiguration &config)