pub fn build_seed_peers(
    seed_config: &NetworkConfig,
    seed_base_addr: NetworkAddress,
) -> SeedPeersConfig {
    let seed_pubkey = seed_config
        .network_keypairs
        .as_ref()
        .expect("Expect network keypairs")
        .identity_keypair
        .public_key();
    let seed_addr = seed_base_addr.append_prod_protos(seed_pubkey, HANDSHAKE_VERSION);

    let mut seed_peers = SeedPeersConfig::default();
    seed_peers
        .seed_peers
        .insert(seed_config.peer_id, vec![seed_addr]);
    seed_peers
        .verify_libranet_addrs()
        .expect("Expect LibraNet addresses");
    seed_peers
}
/// Convenience function that builds a `SeedPeersConfig` containing a single peer
/// with a fully formatted `NetworkAddress` containing its network identity pubkey
/// and handshake protocol version.
Convenience function that builds a `SeedPeersConfig` containing a single peer
with a fully formatted `NetworkAddress` containing its network identity pubkey
and handshake protocol version.
Convenience function that builds a ` SeedPeersConfig ` containing a single peer with a fully formatted ` NetworkAddress ` containing its network identity pubkey and handshake protocol version .
pub fn build_seed_peers(
    seed_config: &NetworkConfig,
    seed_base_addr: NetworkAddress,
) -> SeedPeersConfig {
    let seed_pubkey = seed_config
        .network_keypairs
        .as_ref()
        .expect("Expect network keypairs")
        .identity_keypair
        .public_key();
    let seed_addr = seed_base_addr.append_prod_protos(seed_pubkey, HANDSHAKE_VERSION);
    let mut seed_peers = SeedPeersConfig::default();
    seed_peers
        .seed_peers
        .insert(seed_config.peer_id, vec![seed_addr]);
    seed_peers
        .verify_libranet_addrs()
        .expect("Expect LibraNet addresses");
    seed_peers
}
pub fn build_seed_peers ( seed_config : & NetworkConfig , seed_base_addr : NetworkAddress , ) -> SeedPeersConfig { let seed_pubkey = seed_config . network_keypairs . as_ref ( ) . expect ( " " ) . identity_keypair . public_key ( ) ; let seed_addr = seed_base_addr . append_prod_protos ( seed_pubkey , HANDSHAKE_VERSION ) ; let mut seed_peers = SeedPeersConfig :: default ( ) ; seed_peers . seed_peers . insert ( seed_config . peer_id , vec ! [ seed_addr ] ) ; seed_peers . verify_libranet_addrs ( ) . expect ( " " ) ; seed_peers }
Convenience function that builds a `SeedPeersConfig` containing a single peer
with a fully formatted `NetworkAddress` containing its network identity pubkey
and handshake protocol version.
Convenience function that builds a ` SeedPeersConfig ` containing a single peer with a fully formatted ` NetworkAddress ` containing its network identity pubkey and handshake protocol version .
seed_config
&NetworkConfig
seed_base_addr
NetworkAddress
seed_config
&NetworkConfig
seed_base_addr
NetworkAddress