-
Notifications
You must be signed in to change notification settings - Fork 20.6k
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
Light client doesn't sync the blockchain on private network #3510
Comments
critical. |
Update: Geth version v1.5.7-unstable-b5a100b8/linux/go1.7.4 Normal & client debug stacks: https://gist.github.com/ubunteroz/38548686e097e7f444c7cee5d0cfb396 |
@zsfelfoldi Could you please take a look at this? |
Sorry for missing this issue, I'm currently looking into it. It turned out that there are some minor problems both with the new peer discovery and the les server when running on a private net. I'll make a fix and link the PR here ASAP. |
#3607 fixes the server side issue and also enables adding peers manually. Unfortunately the topic discovery can't help your client finding your server if you don't have your own fixed IP address. Also, it is still a bit unreliable in general, so you might encounter problems even if you're running your server on a fixed IP. So I recommend disabling the topic discovery on the client side (now you can do that with --nodiscover) and adding your server manually with the admin.addPeer("enode://...") command, also on the client side. Once you added the server, the client will remember it next tim and connect automatically. You can also drop the --bootnodes option. |
Thanks, @zsfelfoldi, I will try it out! 😃 |
ubunteroz did you get any luck resolving the issue ? I'm facing the same error while connecting to the geth mother node. |
Hi @sekharkumarroy, I could get it working by disabling topic discovery ( |
@ubunteroz Thanks for your reply. I'm able to establish the connectivity between CLI geth and Light server however facing challenges when connecting from an android device to a private light server using the android package (geth.aar). I'm doing experiment in an internet facing AWS server and all the required ports open. Details of the issue can be found here #3789 |
enode://......:@[::]:30303" is no ip ,I want to connect many node on the pravite net ,how can I do ? |
System information
Geth
Version: 1.5.6-unstable
Git Commit: 3e3edcc
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.7.3
OS: linux
GOPATH=/home/surya/go
GOROOT=/usr/lib/go-1.7
Expected behaviour
Light client can sync the blockchain on private network
Actual behaviour
Light client doesn't sync the blockchain on private network, while the normal/full node client do.
Steps to reproduce the behaviour
$ geth --datadir miner init genesis.json
$ geth --datadir client --light init genesis.json
$ geth --datadir miner --networkid 888 --identity miner --lightserv 75 --lightpeers 10 --shh --mine --minerthreads 1 --autodag --etherbase $ETHERBASE --ipcpath geth.ipc
Backtrace
The text was updated successfully, but these errors were encountered: