mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 03:18:01 +00:00
Default boot_nodes to local node in build-spec (#1181)
* Default to local bootnode with build-spec * Rexport libp2p stuff via network crate * Remove unused imports and fix where formatting * Remove spurious blank lines * Remove unnecessary else clause
This commit is contained in:
@@ -53,7 +53,8 @@ mod transport;
|
||||
|
||||
pub use custom_proto::RegisteredProtocol;
|
||||
pub use error::{Error, ErrorKind, DisconnectReason};
|
||||
pub use libp2p::{Multiaddr, multiaddr::Protocol, PeerId};
|
||||
pub use libp2p::{Multiaddr, multiaddr::{Protocol}, multiaddr, PeerId};
|
||||
pub use secret::obtain_private_key;
|
||||
pub use service_task::{start_service, Service, ServiceEvent};
|
||||
pub use traits::{NetworkConfiguration, NodeIndex, NodeId, NonReservedPeerMode};
|
||||
pub use traits::{ProtocolId, Secret, Severity};
|
||||
|
||||
@@ -25,7 +25,7 @@ use NetworkConfiguration;
|
||||
const SECRET_FILE: &str = "secret";
|
||||
|
||||
/// Obtains or generates the local private key using the configuration.
|
||||
pub(crate) fn obtain_private_key(
|
||||
pub fn obtain_private_key(
|
||||
config: &NetworkConfiguration
|
||||
) -> Result<secio::SecioKeyPair, IoError> {
|
||||
if let Some(ref secret) = config.use_secret {
|
||||
|
||||
Reference in New Issue
Block a user