Kagome
Polkadot Runtime Engine in C++17
common.hpp
Go to the documentation of this file.
1 
6 #ifndef KAGOME_NETWORK_COMMON_HPP
7 #define KAGOME_NETWORK_COMMON_HPP
8 
9 #include "libp2p/peer/protocol.hpp"
10 
11 namespace kagome::network {
13  static constexpr uint32_t CURRENT_VERSION = 6;
15  static constexpr uint32_t MIN_VERSION = 3;
16 
17  const libp2p::peer::Protocol kStateProtocol = "/{}/state/2";
18  const libp2p::peer::Protocol kSyncProtocol = "/{}/sync/2";
20  "/{}/transactions/1";
22  "/{}/block-announces/1";
23  const libp2p::peer::Protocol kGrandpaProtocolLegacy = "/paritytech/grandpa/1";
24  const libp2p::peer::Protocol kGrandpaProtocol = "/{}/grandpa/1";
25 
26  const libp2p::peer::Protocol kCollationProtocol{"/polkadot/collation/1"};
27  const libp2p::peer::Protocol kValidationProtocol{"/polkadot/validation/1"};
29  "/polkadot/req_collation/1"};
30 } // namespace kagome::network
31 
32 #endif // KAGOME_NETWORK_COMMON_HPP
const libp2p::peer::Protocol kGrandpaProtocol
Definition: common.hpp:24
const libp2p::peer::Protocol kStateProtocol
Definition: common.hpp:17
const libp2p::peer::Protocol kBlockAnnouncesProtocol
Definition: common.hpp:21
libp2p::peer::Protocol Protocol
static constexpr uint32_t CURRENT_VERSION
Current protocol version.
Definition: common.hpp:13
const libp2p::peer::Protocol kReqCollationProtocol
Definition: common.hpp:28
static constexpr uint32_t MIN_VERSION
Lowest version we support.
Definition: common.hpp:15
const libp2p::peer::Protocol kValidationProtocol
Definition: common.hpp:27
const libp2p::peer::Protocol kPropagateTransactionsProtocol
Definition: common.hpp:19
const libp2p::peer::Protocol kGrandpaProtocolLegacy
Definition: common.hpp:23
const libp2p::peer::Protocol kCollationProtocol
Definition: common.hpp:26
const libp2p::peer::Protocol kSyncProtocol
Definition: common.hpp:18