6 #ifndef KAGOME_CORE_PRIMITIVES_BABE_CONFIGURATION_HPP 7 #define KAGOME_CORE_PRIMITIVES_BABE_CONFIGURATION_HPP 32 return "Primary only";
34 return "Primary and Secondary Plain";
36 return "Primary and Secondary VRF";
77 typename = std::enable_if_t<Stream::is_encoder_stream>>
79 size_t slot_duration_u64 =
80 std::chrono::duration_cast<std::chrono::milliseconds>(
89 typename = std::enable_if_t<Stream::is_decoder_stream>>
91 size_t slot_duration_u64{};
92 uint8_t allowed_slots;
95 config.
slot_duration = std::chrono::milliseconds(slot_duration_u64);
101 #endif // KAGOME_CORE_PRIMITIVES_BABE_CONFIGURATION_HPP BabeDuration slot_duration
Randomness randomness
The randomness for the genesis epoch.
AuthorityList authorities
The authorities for block production.
Configuration data used by the BABE consensus engine.
Stream & operator>>(Stream &s, ArithmeticError &v)
std::string_view to_string(AllowedSlots s)
AllowedSlots allowed_slots
Type of allowed slots.
Clock< std::chrono::system_clock > SystemClock
BabeSlotNumber epoch_length
Stream & operator<<(Stream &s, const ArithmeticError &v)
BabeClock::Duration BabeDuration
std::pair< uint64_t, uint64_t > leadership_rate
libp2p::connection::Stream Stream
typename ClockType::duration Duration
bool isSecondarySlotsAllowed() const