Skip to content

Commit

Permalink
les: allow LES connection to other servers (#13889)
Browse files Browse the repository at this point in the history
  • Loading branch information
zsfelfoldi authored and fjl committed Apr 10, 2017
1 parent 04fcae2 commit 18bbe12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions les/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 18bbe12

Please sign in to comment.