Skip to content
New issue

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

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

Already on GitHub? # to your account

les: unresponsive server up until sync is done #3639

Closed
farazdagi opened this issue Feb 3, 2017 · 2 comments
Closed

les: unresponsive server up until sync is done #3639

farazdagi opened this issue Feb 3, 2017 · 2 comments
Assignees
Milestone

Comments

@farazdagi
Copy link
Contributor

System information

Geth version: 1.5.8-stable
OS & Version: OSX
Commit hash : f58fb322

Expected behavior

  • RPC server is expected to be available during header syncing

Actual behaviour

  • Everything blocks up until sync is done

Steps to reproduce the behaviour

  • While this issue was first found when we tried to run eth.* commands using web3, this issue can be reproduced in console as well
  • Basically, geth --light --testnet console, then once sync starts, you cannot call any commands (they block), you can't event dump eth object by typing eth ENTER:
    image

More Notes

removes the mechanism which delayed starting the LES server side protocol until ETH was fully synced. This mechanism solved a problem that does not exist anymore, clients now check server's reported head before sending requests and choose a server that can actually serve it. At the same time it caused other problems, like not starting LES server at all when the node was mining alone on a private net. Also, not starting the protocol stalled connections to other LES servers through ETH, even though they did not want to do anything with each other through LES.

  • probably some aspects of the problem are solved with that PR, but the problem reported in this issue (that's blocking calls to eth - using RPC, via console or web3) is still there

Severity

  • This issue is really severe. Blocking/delaying light client server up until full sync (especially on mobile devices where we use LES, and where sync is a bit slower) is huge concern, as it prevents users from using our app up until sync is done
@0xc1c4da
Copy link
Contributor

Related PR #3660

@karalabe
Copy link
Member

Should be fixed on 1.6.0.

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

No branches or pull requests

5 participants