This commit is contained in:
Gav
2018-09-27 16:25:53 +01:00
parent a3285e43f6
commit 65b9e11cd8
17 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
//! Polkadot service possible errors.
//! Substrate service possible errors.
use std::io::Error as IoError;
use network_libp2p::Error as NetworkError;
+3 -3
View File
@@ -141,7 +141,7 @@ pub struct Params<B: BlockT, S, H: ExHashT> {
pub config: ProtocolConfig,
/// Network layer configuration.
pub network_config: NetworkConfiguration,
/// Polkadot relay chain access point.
/// Substrate relay chain access point.
pub chain: Arc<Client<B>>,
/// On-demand service reference.
pub on_demand: Option<Arc<OnDemandService<B>>>,
@@ -151,7 +151,7 @@ pub struct Params<B: BlockT, S, H: ExHashT> {
pub specialization: S,
}
/// Polkadot network service. Handles network IO and manages connectivity.
/// Substrate network service. Handles network IO and manages connectivity.
pub struct Service<B: BlockT + 'static, S: Specialization<B>, H: ExHashT> {
/// Network service
network: NetworkService,
@@ -184,7 +184,7 @@ impl<B: BlockT + 'static, S: Specialization<B>, H: ExHashT> Service<B, S, H> {
Err(err) => {
match err.kind() {
ErrorKind::Io(ref e) if e.kind() == io::ErrorKind::AddrInUse =>
warn!("Network port is already in use, make sure that another instance of Polkadot client is not running or change the port using the --port option."),
warn!("Network port is already in use, make sure that another instance of Substrate client is not running or change the port using the --port option."),
_ => warn!("Error starting network: {}", err),
};
return Err(err.into())