Redefine RequetsId instead of using it from Substrate (#857)

This commit is contained in:
Pierre Krieger
2020-02-21 19:15:29 +01:00
committed by GitHub
parent c01ef7198f
commit c24c8e9b88
+2 -1
View File
@@ -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<Block>;
type RequestId = u64;
/// Specialization of the network service for the polkadot protocol.
pub type PolkadotNetworkService = sc_network::NetworkService<Block, PolkadotProtocol, Hash>;