Compatibility with whisper v6 (#6179)
* compatibility with whisper v6 * separate subprotocol for parity extensions * kill version field
This commit is contained in:
committed by
Gav Wood
parent
246b5282e5
commit
375668bc40
@@ -62,5 +62,8 @@ hash = { path = "../util/hash" }
|
||||
clippy = { version = "0.0.103", optional = true}
|
||||
pretty_assertions = "0.1"
|
||||
|
||||
[dev-dependencies]
|
||||
ethcore-network = { path = "../util/network" }
|
||||
|
||||
[features]
|
||||
dev = ["clippy", "ethcore/dev", "ethcore-util/dev", "ethsync/dev"]
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
use ethsync::{ManageNetwork, NetworkConfiguration};
|
||||
use self::ethcore_network::{ProtocolId, NetworkContext};
|
||||
|
||||
extern crate ethcore_network;
|
||||
|
||||
pub struct TestManageNetwork;
|
||||
|
||||
@@ -27,4 +30,5 @@ impl ManageNetwork for TestManageNetwork {
|
||||
fn start_network(&self) {}
|
||||
fn stop_network(&self) {}
|
||||
fn network_config(&self) -> NetworkConfiguration { NetworkConfiguration::new_local() }
|
||||
fn with_proto_context(&self, _: ProtocolId, _: &mut FnMut(&NetworkContext)) { }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user