From c24c8e9b888f20b1232c1b3da5d9a30bd907d505 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Fri, 21 Feb 2020 19:15:29 +0100 Subject: [PATCH] Redefine RequetsId instead of using it from Substrate (#857) --- polkadot/network/src/legacy/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/polkadot/network/src/legacy/mod.rs b/polkadot/network/src/legacy/mod.rs index 413a5d4b82..fe7018dfb0 100644 --- a/polkadot/network/src/legacy/mod.rs +++ b/polkadot/network/src/legacy/mod.rs @@ -34,7 +34,7 @@ use polkadot_primitives::parachain::{ ValidatorId, ErasureChunk, }; use sc_network::{ - PeerId, RequestId, Context, StatusMessage as GenericFullStatus, + PeerId, Context, StatusMessage as GenericFullStatus, specialization::NetworkSpecialization as Specialization, }; use sc_network_gossip::TopicNotification; @@ -54,6 +54,7 @@ use crate::{cost, benefit}; mod tests; type FullStatus = GenericFullStatus; +type RequestId = u64; /// Specialization of the network service for the polkadot protocol. pub type PolkadotNetworkService = sc_network::NetworkService;