From 18bbe124259a852b349e8238ffe394639e29d803 Mon Sep 17 00:00:00 2001 From: Felföldi Zsolt Date: Tue, 11 Apr 2017 01:23:39 +0200 Subject: les: allow LES connection to other servers (#13889) --- les/peer.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'les/peer.go') 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 { -- cgit