GetPeers comments

This commit is contained in:
afeiszli
2022-05-31 16:11:58 -04:00
parent 050da4ea74
commit 9e00a00bda
2 changed files with 52 additions and 22 deletions

View File

@@ -115,6 +115,7 @@ func RandomString(length int) string {
// == Private Methods ==
// getNetworkEgressAndNodes - returns two slices, #1 is all nodes in the network, #2 is the egress nodes in the network
func getNetworkEgressAndNodes(networkName string) ([]models.Node, []models.Node, error) {
var networkNodes, egressNetworkNodes []models.Node
collection, err := database.FetchRecords(database.NODES_TABLE_NAME)