devp2p snappy compression (#6683)

This commit is contained in:
Arkadiy Paronyan
2017-10-19 14:41:11 +02:00
committed by Gav Wood
parent fdbf6bf7d6
commit b4c4fddb10
7 changed files with 76 additions and 41 deletions

View File

@@ -81,6 +81,7 @@ extern crate ethcore_logger;
extern crate ipnetwork;
extern crate hash;
extern crate serde_json;
extern crate snappy;
#[macro_use]
extern crate log;
@@ -115,7 +116,7 @@ pub use node_table::{is_valid_node_url, NodeId};
use ipnetwork::{IpNetwork, IpNetworkError};
use std::str::FromStr;
const PROTOCOL_VERSION: u32 = 4;
const PROTOCOL_VERSION: u32 = 5;
/// Network IO protocol handler. This needs to be implemented for each new subprotocol.
/// All the handler function are called from within IO event loop.