func GetNodeIPs(client *lndwrapper.Lnd, nodePubKey [33]byte) []string {

	var addrs []string
	var i int
	nodePubKeyHexString := PubKeyArrayToString(nodePubKey)

	nodeInfo, err := client.GetNodeInfo(nodePubKeyHexString, false)
	if err != nil {
		log.Fatal(err)
	}

	for _, nodeAddress := range nodeInfo.Node.Addresses {
		i = strings.Index(nodeAddress.Addr, ":")
		addrs = append(addrs, nodeAddress.Addr[:i])
	}

	return addrs
}
//GetNodeIPs - Get the IP of a certain node
Get the IP of a certain node
// GetNodeIPs - Get the IP of a certain node
func GetNodeIPs(client *lndwrapper.Lnd, nodePubKey [33]byte) []string {
	var addrs []string
	var i int
	nodePubKeyHexString := PubKeyArrayToString(nodePubKey)
	nodeInfo, err := client.GetNodeInfo(nodePubKeyHexString, false)
	if err != nil {
		log.Fatal(err)
	}
	for _, nodeAddress := range nodeInfo.Node.Addresses {
		i = strings.Index(nodeAddress.Addr, ":")
		addrs = append(addrs, nodeAddress.Addr[:i])
	}
	return addrs
}
func GetNodeIPs ( client * lndwrapper . Lnd , nodePubKey [ 33 ] byte ) [ ] string { var addrs [ ] string var i int nodePubKeyHexString := PubKeyArrayToString ( nodePubKey ) nodeInfo , err := client . GetNodeInfo ( nodePubKeyHexString , false ) if err != nil { log . Fatal ( err ) } for _ , nodeAddress := range nodeInfo . Node . Addresses { i = strings . Index ( nodeAddress . Addr , " " ) addrs = append ( addrs , nodeAddress . Addr [ : i ] ) } return addrs }
Get the IP of a certain node
Get the IP of a certain node