Some tweaks in the network crate (#1108)

* Move Roles to network::config

* Make network::config public

* Move NetworkConfig and NonReservedMode to config

* Move Params to config

* Move node_id() to NetworkManager and fix tests

* Rename Specialization to NetworkSpecialization
This commit is contained in:
Pierre Krieger authored and Gav Wood committed 2018-11-14 11:25:16 +01:00
1 parent 6ad88fc623
commit 74e907f3cb
16 files changed
+117 -109

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ use service::{
ServiceFactory, FactoryFullConfiguration, RuntimeGenesis,
FactoryGenesis, PruningMode, ChainSpec,
};
use network::{NonReservedPeerMode, Protocol};
use network::{Protocol, config::NonReservedPeerMode};
use primitives::H256;
use std::io::{Write, Read, stdin, stdout};