Skip to content

Commit

Permalink
fix: verify node is not treated as verify node (#1024)
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro authored Jul 28, 2022
1 parent 06bc2a0 commit 6c46c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ func (srv *Server) checkInboundConn(remoteIP net.IP) error {
func (srv *Server) SetupConn(fd net.Conn, flags connFlag, dialDest *enode.Node) error {
// If dialDest is verify node, set verifyConn flags.
for _, n := range srv.VerifyNodes {
if dialDest == n {
if dialDest.ID() == n.ID() {
flags |= verifyConn
}
}
Expand Down

0 comments on commit 6c46c59

Please sign in to comment.