I have using eth --private "customChain" --genesis-json genesis.json --db-path data" to create a private chain. and when I into ethconsole it shows:

Connecting to node at \\.\pipe\geth.ipc
Connection successful.
Current block number: 0
Entering interactive mode.

I think I need to initialize my chain, but I'm not should what code I should do to initialize it. So anyone have any ideas?

  • You need to mine blocks in order to increase block number. – Ayushya Mar 14 '18 at 7:56
  • Thank you for reply. But how to increase block number? – Whisperd130 Mar 14 '18 at 9:55
  • When inside ethconsole, try running miner.start(). This is how it works in geth, might work in eth too – Ayushya Mar 14 '18 at 10:19
  • Yes, I have try to use it. After that command, my cpu was up to 90%, and the eth showed: " 17:32:36.093|<unknown> Loading full DAG of seedhash: #00000000鈥 i 17:32:53.782|<unknown> Full DAG loaded". After these message, the cpu still 90 or more,but it showed nothing more. I'm not sure what happened at the moment. – Whisperd130 Mar 14 '18 at 10:44
  • Which consensus are you using? PoA or PoW? – Ayushya Mar 14 '18 at 11:26

You should first explore the concept of ethereum networks.

As per your response, it seems you are using POW, which is not recommended for test network. You can use POA. PoA does not do heavy computation while mining blocks.

As for the answer to your question, your node should be mining blocks if you want the block numbers to increase.

  • After cpu up to 90% for almost an hour. The block number is still 0. – Whisperd130 Mar 14 '18 at 12:47
  • It should increase in about a minute. And if it does not inccrease, then it will never increase. Your miner is unable to reach consensus. – Ayushya Mar 14 '18 at 14:35
  • Yes, I think I find the problem. The private chain need to use config,json to create. When I used that, the block number was increasing, so did my account. – Whisperd130 Mar 16 '18 at 7:58

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.