aboutsummaryrefslogtreecommitdiffstats
path: root/les/handler.go
diff options
context:
space:
mode:
authorZsolt Felfoldi <zsfelfoldi@gmail.com>2017-01-23 08:54:01 +0800
committerZsolt Felfoldi <zsfelfoldi@gmail.com>2017-01-26 11:23:49 +0800
commitf5348e17f8d487a7bd34ccef6dcb6dc376407f40 (patch)
tree935b3270137efbb7284429911368afd5eb96c33c /les/handler.go
parent1886d03faa9b7d8cdf335da84c297d30c213bb69 (diff)
downloadgo-tangerine-f5348e17f8d487a7bd34ccef6dcb6dc376407f40.tar
go-tangerine-f5348e17f8d487a7bd34ccef6dcb6dc376407f40.tar.gz
go-tangerine-f5348e17f8d487a7bd34ccef6dcb6dc376407f40.tar.bz2
go-tangerine-f5348e17f8d487a7bd34ccef6dcb6dc376407f40.tar.lz
go-tangerine-f5348e17f8d487a7bd34ccef6dcb6dc376407f40.tar.xz
go-tangerine-f5348e17f8d487a7bd34ccef6dcb6dc376407f40.tar.zst
go-tangerine-f5348e17f8d487a7bd34ccef6dcb6dc376407f40.zip
les: add unknown peers to server pool instead of rejecting them
Diffstat (limited to 'les/handler.go')
-rw-r--r--les/handler.go3
1 files changed, 0 insertions, 3 deletions
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 {