Kagome
Polkadot Runtime Engine in C++17
common.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_COMMON_HPP
7 #define KAGOME_COMMON_HPP
8 
9 #include <cstdint>
10 
11 #include "clock/clock.hpp"
12 #include "crypto/sr25519_types.hpp"
13 
14 namespace kagome::consensus {
16 
19 
20  // Babe uses system clock's duration
22 
24  using BabeSlotNumber = uint64_t;
25 
27  using EpochNumber = uint64_t;
28 
29  // number of slots in a single epoch
31 
34 
37 } // namespace kagome::consensus
38 
39 #endif // KAGOME_COMMON_HPP
boost::multiprecision::uint128_t VRFThreshold
Clock< std::chrono::system_clock > SystemClock
Definition: clock.hpp:57
BabeClock::TimePoint BabeTimePoint
BABE uses system clock&#39;s time points.
Definition: common.hpp:18
uint64_t BabeSlotNumber
slot number of the Babe production
Definition: common.hpp:24
EpochNumber EpochLength
Definition: common.hpp:30
typename ClockType::duration Duration
Definition: clock.hpp:23
uint64_t EpochNumber
number of the epoch in the Babe production
Definition: common.hpp:27
crypto::VRFThreshold Threshold
threshold, which must not be exceeded for the party to be a slot leader
Definition: common.hpp:33
typename ClockType::time_point TimePoint
Definition: clock.hpp:27
BabeClock::Duration BabeDuration
Definition: common.hpp:21