Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LES] Servers should peer with servers if they have no peers #13877

Closed
immesys opened this issue Apr 7, 2017 · 3 comments
Closed

[LES] Servers should peer with servers if they have no peers #13877

immesys opened this issue Apr 7, 2017 · 3 comments
Assignees

Comments

@immesys
Copy link

immesys commented Apr 7, 2017

System information

Geth version: 1.5.9
OS & Version: Linux
Commit hash : my own hacked fork, but changes likely not relevant

Expected behaviour

A private network consisting of nodes having --lightserv 50 --lightpeers 20 in the absence of light clients will function the same as without those flags

Actual behaviour

Light servers will refuse to peer with light servers leading to peer starvation in the case that all nodes are light servers. E.g:

DEBUG[04-07|03:12:34] Light Ethereum handshake failed          id=4bb411a7c77b12c5 conn=inbound err=" - wanted client, got server"
TRACE[04-07|03:12:34] Protocol les/1 failed                    id=4bb411a7c77b12c5 conn=inbound err=" - wanted client, got server"
DEBUG[04-07|03:12:34] Ethereum message handling failed         id=4bb411a7c77b12c5 conn=inbound err=EOF
DEBUG[04-07|03:12:34] Removing Ethereum peer                   peer=4bb411a7c77b12c5
TRACE[04-07|03:12:34] Unregistering sync peer                  peer=4bb411a7c77b12c5

which basically leads to all nodes having no peers at all.

Steps to reproduce the behaviour

Try running a few geth nodes where all reachable peers are light servers (either private network or net restrict)

@immesys
Copy link
Author

immesys commented Apr 11, 2017

Thanks!

@karalabe
Copy link
Member

@immesys Could you verify that it works for you now? Just want to make sure before releasing it.

@immesys
Copy link
Author

immesys commented Apr 11, 2017

Sure, I can test this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants