Remove dependency on the parity repo (#734)

This commit is contained in:
Arkadiy Paronyan
2018-09-13 14:25:38 +02:00
committed by Gav Wood
parent 88ef57e4bd
commit 0ed48c89ab
12 changed files with 119 additions and 263 deletions
-1
View File
@@ -22,7 +22,6 @@
//! Allows attachment of an optional subprotocol for chain-specific requests.
// end::description[]
extern crate ethcore_io as core_io;
extern crate linked_hash_map;
extern crate parking_lot;
extern crate substrate_primitives as primitives;
+2 -1
View File
@@ -22,7 +22,6 @@ use futures::sync::{oneshot, mpsc};
use network_libp2p::{NetworkProtocolHandler, NetworkContext, NodeIndex, ProtocolId,
NetworkConfiguration , NonReservedPeerMode, ErrorKind};
use network_libp2p::{NetworkService};
use core_io::{TimerToken};
use io::NetSyncIo;
use protocol::{Protocol, ProtocolContext, Context, ProtocolStatus, PeerInfo as ProtocolPeerInfo};
use config::{ProtocolConfig};
@@ -39,6 +38,8 @@ pub type FetchFuture = oneshot::Receiver<Vec<u8>>;
/// Type that represents bft messages stream.
pub type BftMessageStream<B> = mpsc::UnboundedReceiver<LocalizedBftMessage<B>>;
type TimerToken = usize;
const TICK_TOKEN: TimerToken = 0;
const TICK_TIMEOUT: Duration = Duration::from_millis(1000);