fix compilation

This commit is contained in:
keorn
2016-11-16 13:13:21 +00:00
parent 2fa34fd6a8
commit 3b0d5503b1
4 changed files with 22 additions and 19 deletions

View File

@@ -280,7 +280,7 @@ impl ChainNotify for EthSync {
}
fn stop(&self) {
self.handler.snapshot_service.abort_restore();
self.eth_handler.snapshot_service.abort_restore();
self.network.stop().unwrap_or_else(|e| warn!("Error stopping network: {:?}", e));
}

View File

@@ -37,7 +37,7 @@ const GENERIC_PACKET: u8 = 0x01;
pub struct NetworkStatus {
pub protocol_version: u8,
/// The underlying p2p network version.
pub network_id: U256,
pub network_id: usize,
/// Total number of connected peers
pub num_peers: usize,
/// Total number of active peers
@@ -52,7 +52,7 @@ struct PeerInfo {
/// Peer chain genesis hash
genesis: H256,
/// Peer network id
network_id: U256,
network_id: usize,
}
/// Infinity protocol handler.
@@ -61,7 +61,7 @@ pub struct InfinitySync {
/// All connected peers
peers: HashMap<PeerId, PeerInfo>,
/// Network ID
network_id: U256,
network_id: usize,
}
impl InfinitySync {