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

	neighboursPubKey := []string{}
	neighboursArrayPubKey := [][33]byte{}
	nodePubKeyHexString := PubKeyArrayToString(nodePubKey)

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

	for _, channel := range nodeInfo.GetChannels() {
		neighboursPubKey = append(neighboursPubKey, channel.Node1Pub)
		neighboursArrayPubKey = append(neighboursArrayPubKey, PubKeyStringToArray(channel.Node1Pub))
	}

	fmt.Println("Neigbours of " + nodePubKeyHexString + ": " + strings.Join(neighboursPubKey, ", "))

	return neighboursArrayPubKey
}
//GetNodeNeighboursPubKeys - Returns the pubkeys associated  with neighbors of nodePubKey
Returns the pubkeys associated  with neighbors of nodePubKey
// GetNodeNeighboursPubKeys - Returns the pubkeys associated with neighbors of nodePubKey
func GetNodeNeighboursPubKeys(client *lndwrapper.Lnd, nodePubKey [33]byte) [][33]byte {
	neighboursPubKey := []string{}
	neighboursArrayPubKey := [][33]byte{}
	nodePubKeyHexString := PubKeyArrayToString(nodePubKey)
	nodeInfo, err := client.GetNodeInfo(nodePubKeyHexString, true)
	if err != nil {
		log.Fatal(err)
	}
	for _, channel := range nodeInfo.GetChannels() {
		neighboursPubKey = append(neighboursPubKey, channel.Node1Pub)
		neighboursArrayPubKey = append(neighboursArrayPubKey, PubKeyStringToArray(channel.Node1Pub))
	}
	fmt.Println("Neigbours of " + nodePubKeyHexString + ": " + strings.Join(neighboursPubKey, ", "))
	return neighboursArrayPubKey
}
func GetNodeNeighboursPubKeys ( client * lndwrapper . Lnd , nodePubKey [ 33 ] byte ) [ ] [ 33 ] byte { neighboursPubKey := [ ] string { } neighboursArrayPubKey := [ ] [ 33 ] byte { } nodePubKeyHexString := PubKeyArrayToString ( nodePubKey ) nodeInfo , err := client . GetNodeInfo ( nodePubKeyHexString , true ) if err != nil { log . Fatal ( err ) } for _ , channel := range nodeInfo . GetChannels ( ) { neighboursPubKey = append ( neighboursPubKey , channel . Node1Pub ) neighboursArrayPubKey = append ( neighboursArrayPubKey , PubKeyStringToArray ( channel . Node1Pub ) ) } fmt . Println ( " " + nodePubKeyHexString + " " + strings . Join ( neighboursPubKey , " " ) ) return neighboursArrayPubKey }
Returns the pubkeys associated  with neighbors of nodePubKey
Returns the pubkeys associated with neighbors of nodePubKey