Kagome
Polkadot Runtime Engine in C++17
block_id.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_CORE_PRIMITIVES_BLOCK_ID_HPP
7 #define KAGOME_CORE_PRIMITIVES_BLOCK_ID_HPP
8 
9 #include <boost/variant.hpp>
10 
11 #include "common/blob.hpp"
12 #include "primitives/common.hpp"
13 
14 namespace kagome::primitives {
16 
18  using BlockId = boost::variant<BlockHash, BlockNumber>;
19 } // namespace kagome::primitives
20 
21 #endif // KAGOME_CORE_PRIMITIVES_BLOCK_ID_HPP
Blob< 32 > Hash256
Definition: blob.hpp:230
boost::variant< BlockHash, BlockNumber > BlockId
Block id is the variant over BlockHash and BlockNumber.
Definition: block_id.hpp:18