From f5348e17f8d487a7bd34ccef6dcb6dc376407f40 Mon Sep 17 00:00:00 2001 From: Zsolt Felfoldi Date: Mon, 23 Jan 2017 01:54:01 +0100 Subject: les: add unknown peers to server pool instead of rejecting them --- les/handler.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'les/handler.go') diff --git a/les/handler.go b/les/handler.go index 603ce9ad4..42a45845d 100644 --- a/les/handler.go +++ b/les/handler.go @@ -160,9 +160,6 @@ func NewProtocolManager(chainConfig *params.ChainConfig, lightSync bool, network if manager.serverPool != nil { addr := p.RemoteAddr().(*net.TCPAddr) entry = manager.serverPool.connect(peer, addr.IP, uint16(addr.Port)) - if entry == nil { - return fmt.Errorf("unwanted connection") - } } peer.poolEntry = entry select { -- cgit v1.2.3