fn to_seed_peer(validator_info: &ValidatorInfo) -> (PeerId, Vec<NetworkAddress>) {
    let peer_id = *validator_info.account_address();
    let seed_pubkey = validator_info.network_identity_public_key();
    let network_addr =
        NetworkAddress::try_from(&validator_info.config().full_node_network_address).unwrap();
    let seed_addr = network_addr.append_prod_protos(seed_pubkey, HANDSHAKE_VERSION);
    (peer_id, vec![seed_addr])
}
/// Convert ValidatorInfo to a seed peer
Convert ValidatorInfo to a seed peer
Convert ValidatorInfo to a seed peer
fn to_seed_peer(validator_info: &ValidatorInfo) -> (PeerId, Vec<NetworkAddress>) {
    let peer_id = *validator_info.account_address();
    let seed_pubkey = validator_info.network_identity_public_key();
    let network_addr =
        NetworkAddress::try_from(&validator_info.config().full_node_network_address).unwrap();
    let seed_addr = network_addr.append_prod_protos(seed_pubkey, HANDSHAKE_VERSION);
    (peer_id, vec![seed_addr])
}
fn to_seed_peer ( validator_info : & ValidatorInfo ) -> ( PeerId , Vec < NetworkAddress > ) { let peer_id = * validator_info . account_address ( ) ; let seed_pubkey = validator_info . network_identity_public_key ( ) ; let network_addr = NetworkAddress :: try_from ( & validator_info . config ( ) . full_node_network_address ) . unwrap ( ) ; let seed_addr = network_addr . append_prod_protos ( seed_pubkey , HANDSHAKE_VERSION ) ; ( peer_id , vec ! [ seed_addr ] ) }
Convert ValidatorInfo to a seed peer
Convert ValidatorInfo to a seed peer
validator_info
&ValidatorInfo
validator_info
&ValidatorInfo