aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelföldi Zsolt <zsfelfoldi@gmail.com>2017-04-11 07:23:39 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-04-11 07:23:39 +0800
commit18bbe124259a852b349e8238ffe394639e29d803 (patch)
tree75b1ca670ef5e379ae687ac96fca651abed5477a
parent04fcae207dad27e1b7333da4cfb7319c071e622b (diff)
downloadgo-tangerine-18bbe124259a852b349e8238ffe394639e29d803.tar
go-tangerine-18bbe124259a852b349e8238ffe394639e29d803.tar.gz
go-tangerine-18bbe124259a852b349e8238ffe394639e29d803.tar.bz2
go-tangerine-18bbe124259a852b349e8238ffe394639e29d803.tar.lz
go-tangerine-18bbe124259a852b349e8238ffe394639e29d803.tar.xz
go-tangerine-18bbe124259a852b349e8238ffe394639e29d803.tar.zst
go-tangerine-18bbe124259a852b349e8238ffe394639e29d803.zip
les: allow LES connection to other servers (#13889)
-rw-r--r--les/peer.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/les/peer.go b/les/peer.go
index 4793da296..f45605593 100644
--- a/les/peer.go
+++ b/les/peer.go
@@ -391,9 +391,10 @@ func (p *peer) Handshake(td *big.Int, head common.Hash, headNum uint64, genesis
return errResp(ErrProtocolVersionMismatch, "%d (!= %d)", rVersion, p.version)
}
if server != nil {
- if recv.get("serveStateSince", nil) == nil {
+ // until we have a proper peer connectivity API, allow LES connection to other servers
+ /*if recv.get("serveStateSince", nil) == nil {
return errResp(ErrUselessPeer, "wanted client, got server")
- }
+ }*/
p.fcClient = flowcontrol.NewClientNode(server.fcManager, server.defParams)
} else {
if recv.get("serveChainSince", nil) != nil {