i have created a private network with this genesis file

  "coinbase"   : "0x0000000000000000000000000000000000000001",
  "difficulty" : "0x400",
  "extraData"  : "",
  "gasLimit"   : "0x2fefd8",
  "nonce"      : "0x0000000000000042",
  "mixhash"    : "0x0000000000000000000000000000000000000000000000000000000000000000",
  "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
  "timestamp"  : "0x00",
  "alloc": {},
  "config": {
        "chainId": 10,
        "homesteadBlock": 0,
        "eip155Block": 0,
        "eip158Block": 0

and then i created an account and when i start mining nothing happen this is the output of the console when i try web3.fromWei(eth.getBalance(eth.coinbase), "ether") it return 0 and eth.hashrate return 225861 and eth.blockNumber return 0. I tried to change difficulty to 0*0 and the same problem persist. I have to resolve this problem to deploy a contract in my private network

  • Check if the chainId returned by admin.nodeInfo (executed from geth's console) is the same that in your genesis file. – Ismael Apr 25 '19 at 15:59

Your Answer

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

Browse other questions tagged or ask your own question.