testing continued

This commit is contained in:
0xdcarns
2022-01-18 09:51:45 -05:00
parent b5423e3ece
commit aebe39e46b
4 changed files with 3 additions and 16 deletions

View File

@@ -31,20 +31,6 @@ func ParseIntClient(value string) (models.IntClient, error) {
return intClient, err
}
//Takes in an arbitrary field and value for field and checks to see if any other
//node has that value for the same field within the network
// SliceContains - sees if a slice contains something
func SliceContains(slice []string, item string) bool {
set := make(map[string]struct{}, len(slice))
for _, s := range slice {
set[s] = struct{}{}
}
_, ok := set[item]
return ok
}
// GetPeersList - gets peers for given network
func GetPeersList(networkName string) ([]models.PeersResponse, error) {