4

i run a geth light mode node on Ubuntu by geth --syncmode "light" --identity "mydev" --rpc --rpccorsdomain "*" --datadir "/root/mygeth/chain" --rpcapi "db,eth,net,web3" --networkid 1 console

But it always looking for peers and peer count is 0

Do I need to add some peers and where to find

Thanks

3
  • How long you been waiting for peers? Usually it takes few hours. At least this is what happened with my light node. Mar 2, 2020 at 13:27
  • Are you behind a firewall or NAT network? Try port forwarding the p2p port to the machine running geth.
    – Ismael
    Mar 2, 2020 at 14:58
  • thanks. if i submit a raw transaction to geth light node, it will be the same as submitting to geth full node?
    – Louis
    Mar 4, 2020 at 0:55

1 Answer 1

1

When full nodes decide to serve light nodes, they use much more bandwidth and read a lot off of their disk, so most people don't serve light nodes. I've had problems running any kind of nodes on Ubuntu, so that might be your problem. Also, there are tons of light nodes waiting for new ones. Don't try to run a light node during ICO, you will never find one.

2
  • if I add some node as peers by admin I found the node by etherscan nodes. Is this correct?
    – Louis
    Mar 15, 2020 at 11:43
  • Are you saying you found etherscan's nodes? If you add any light node serving node, and add it via admin.addPeer, it will start serving you. etherscan nodes are just like any nodes Mar 16, 2020 at 14:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.