p2p: make NodeID and NetAddress public (#6583)

This commit is contained in:
Sam Kleinman
2021-06-24 09:59:14 -04:00
committed by GitHub
parent 4c30f084da
commit ae5f98881b
89 changed files with 1367 additions and 1305 deletions
+1 -1
View File
@@ -278,7 +278,7 @@ func persistentPeersArray(config *cfg.Config) ([]string, error) {
if err != nil {
return []string{}, err
}
peers[i] = p2p.IDAddressString(nodeKey.ID, fmt.Sprintf("%s:%d", hostnameOrIP(i), p2pPort))
peers[i] = nodeKey.ID.AddressString(fmt.Sprintf("%s:%d", hostnameOrIP(i), p2pPort))
}
return peers, nil
}