1

I have a dumb question. Can we run light client and full client at the same time in the same server? I want this because the server where I was running full node crashed. After recovery, GETH node is not working at all. So, just to be on safe side I also want to run a light client where if need be, I will point my web3 provider IPC to the light client. Thanks

3
  • If you do this at enterprise level, why do you have a full node if a light one is enough ? Commented Jul 16, 2020 at 9:29
  • Hey @FlorianCastelain Thanks for the question. I wanted to experiment with light nodes which is downloading right now just to see if it can do the required tasks. The full node crashed and is still not running so wanted to use light client. Do you know if a light client can invoke a function of a smart contract?
    – Mr.SsS
    Commented Jul 16, 2020 at 9:57
  • You can find a lot on Internet about the difference of light and full node. Basically, light node cannot validate transactions and requires a contact to a full node to validate something as the light node mostly only have block headers. But I'm not sure about that last part. Commented Jul 16, 2020 at 10:31

1 Answer 1

1

Just need to change the port for light client and default datadirectory:

geth # defaults to port 30303 and ~/.ethereum
geth --syncmode light --port 30304 --datadir ~/.ethereum-02

Reference: How to run two nodes on the same device?

Your Answer

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

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