Kagome
Polkadot Runtime Engine in C++17
common.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_CONSENSUS_GRANDPA_COMMON_HPP
7 #define KAGOME_CORE_CONSENSUS_GRANDPA_COMMON_HPP
8 
9 #include <unordered_map>
10 
11 #include "clock/clock.hpp"
12 #include "common/wrapper.hpp"
13 #include "crypto/ed25519_types.hpp"
14 #include "primitives/authority.hpp"
15 #include "primitives/common.hpp"
16 
18 
19  using Id = crypto::Ed25519PublicKey;
20 
21  // vote signature
22  using Signature = crypto::Ed25519Signature;
25  using RoundNumber = uint64_t;
26  using VoterSetId = uint64_t;
27 
31 
32 } // namespace kagome::consensus::grandpa
33 
34 #endif // KAGOME_CORE_CONSENSUS_GRANDPA_COMMON_HPP
Clock::TimePoint TimePoint
Definition: common.hpp:30
Clock::Duration Duration
Definition: common.hpp:29
crypto::Ed25519PublicKey Id
Definition: common.hpp:19
Clock< std::chrono::steady_clock > SteadyClock
Definition: clock.hpp:51
uint32_t BlockNumber
Definition: common.hpp:18
crypto::Ed25519Signature Signature
Definition: common.hpp:22
primitives::BlockNumber BlockNumber
Definition: common.hpp:24
common::Hash256 BlockHash
Definition: block_id.hpp:15
typename ClockType::duration Duration
Definition: clock.hpp:23
typename ClockType::time_point TimePoint
Definition: clock.hpp:27