Skip to content

Commit

Permalink
Merge pull request ethereum#228 from jpmorganchase/permissioned-typos
Browse files Browse the repository at this point in the history
p2p/permissions: Fix typos
  • Loading branch information
patrickmn committed Nov 16, 2017
2 parents cdee0da + 8eb4547 commit b74fa3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions p2p/permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ const (
// check if a given node is permissioned to connect to the change
func isNodePermissioned(nodename string, currentNode string, datadir string, direction string) bool {

var permissonedList []string
var permissionedList []string
nodes := parsePermissionedNodes(datadir)
for _, v := range nodes {
permissonedList = append(permissonedList, v.ID.String())
permissionedList = append(permissionedList, v.ID.String())
}

log.Debug("isNodePermissioned", "permisssionedList", permissonedList)
for _, v := range permissonedList {
log.Debug("isNodePermissioned", "permissionedList", permissionedList)
for _, v := range permissionedList {
if v == nodename {
log.Debug("isNodePermissioned", "connection", direction, "nodename", nodename[:NODE_NAME_LENGTH], "ALLOWED-BY", currentNode[:NODE_NAME_LENGTH])
return true
Expand Down

0 comments on commit b74fa3e

Please sign in to comment.