diff options
author | Zsolt Felfoldi <zsfelfoldi@gmail.com> | 2017-01-23 08:54:01 +0800 |
---|---|---|
committer | Zsolt Felfoldi <zsfelfoldi@gmail.com> | 2017-01-26 11:23:49 +0800 |
commit | f5348e17f8d487a7bd34ccef6dcb6dc376407f40 (patch) | |
tree | 935b3270137efbb7284429911368afd5eb96c33c /les/handler.go | |
parent | 1886d03faa9b7d8cdf335da84c297d30c213bb69 (diff) | |
download | dexon-f5348e17f8d487a7bd34ccef6dcb6dc376407f40.tar.gz dexon-f5348e17f8d487a7bd34ccef6dcb6dc376407f40.tar.zst dexon-f5348e17f8d487a7bd34ccef6dcb6dc376407f40.zip |
les: add unknown peers to server pool instead of rejecting them
Diffstat (limited to 'les/handler.go')
-rw-r--r-- | les/handler.go | 3 |
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 { |