MCPcopy Create free account
hub / github.com/akash-network/node / getIP

Function getIP

cmd/akash/cmd/testnet.go:373–382  ·  view source on GitHub ↗
(i int, startingIPAddr string)

Source from the content-addressed store, hash-verified

371}
372
373func getIP(i int, startingIPAddr string) (ip string, err error) {
374 if len(startingIPAddr) == 0 {
375 ip, err = server.ExternalIP()
376 if err != nil {
377 return "", err
378 }
379 return ip, nil
380 }
381 return calculateIP(startingIPAddr, i)
382}
383
384func calculateIP(ip string, i int) (string, error) {
385 ipv4 := net.ParseIP(ip).To4()

Callers 1

InitTestnetFunction · 0.85

Calls 1

calculateIPFunction · 0.85

Tested by

no test coverage detected