Skip to content

Commit

Permalink
p2p: Remove unnecessary trusted set check
Browse files Browse the repository at this point in the history
  • Loading branch information
shazow committed May 23, 2018
1 parent 57b6379 commit c85443e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions p2p/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -638,9 +638,7 @@ running:
// This channel is used by RemoveTrustedPeer to remove an enode
// from the trusted node set
srv.log.Debug("Removing trusted node", "node", n)
if _, ok := trusted[n.ID]; ok {
delete(trusted, n.ID)
}
delete(trusted, n.ID)
// Unmark any already-connected peer as trusted
if p, ok := peers[n.ID]; ok {
p.rw.flags &= ^trustedConn
Expand Down

0 comments on commit c85443e

Please sign in to comment.