0

I just installed geth on Windows 10. Then I did the initial sync in light mode on testnet, and my status is as shown on the screenshot below.

enter image description here

I have two questions (related):

  1. How do I tell if the sync is done?

  2. If it is done, can I now close this command window before I start my experiments, say a "Hello, World" smart contract.

Update:

I tried geth attach as suggested by abattia, and got this error:

enter image description here

3
  • Try geth attach ipc:\\.\pipe\geth.ipc
    – abattia
    Jul 7, 2018 at 8:32
  • it works now, thanks! do you mind updating the same in your answer so that I can accept it?
    – Indominus
    Jul 7, 2018 at 9:04
  • Done. Glad that worked!
    – abattia
    Jul 7, 2018 at 10:02

1 Answer 1

0

How do I tell if the sync is done?

For Windows 10, from another terminal enter: geth attach ipc:\\.\pipe\geth.ipc. Assuming the geth console opens OK, then enter eth.syncing. If you get the response false, then the node thinks it is synced. Otherwise, the command will return information about the status of the syncing (currentBlock, highestBlock, knownStates, pulledStates, startingBlock).

If it is done, can I now close this command window before I start my experiments, say a "Hello, World" smart contract.

Best to leave that terminal open, and do the rest of your tests from another terminal.

3
  • If the terminal has to be left open, does that mean if I shut down my computer, I will need to run through the syncing process again?
    – Indominus
    Jul 6, 2018 at 21:25
  • If the terminal has to be left open, does that mean if I shut down my computer, I will need to run through the syncing process again? If you shut down your computer, the node will no longer be able to stay synced. If you then re-start your node, it doesn't need to re-start syncing completely; it picks up from where it got to, but will need to spend time syncing with the blocks created since it was shut off.
    – abattia
    Jul 6, 2018 at 21:51
  • tried geth attach, doesn't seem to work, see my update on the question.
    – Indominus
    Jul 6, 2018 at 23:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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