I want to develop a dapp and deploy on geth. I have installed geth and mist wallet. Now, when I am starting miner.start(1) to make some ethers for account. It is showing me null and no ether is getting generated. I have geth running on 1 terminal window, Mist wallet opened and geth console running on 2nd terminal window. I am following a tutorial on youtube and in that miner.start(2) returns true and mining starts within no time. Please help how I can generate ether for my private network.
My genesis.json is
{
"alloc": {
"0x0000000000000000000000000000000000000001": {"balance": "111111111"},
"0x0000000000000000000000000000000000000002": {"balance": "222222222"}
},
"config": {
"chainId": 15,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"coinbase" : "0x0000000000000000000000000000000000000000",
"difficulty" : "0x20000",
"extraData" : "",
"gasLimit" : "0x2fefd8",
"nonce" : "0x0000000000000042",
"mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp" : "0x00"
}
Please help in how to solve miner.start() issue.
miner.start(1)it may take some time to generate the DAG. Also every time you modify the genesis requires a restartgeth <other params> removedb&geth <other params> init genesis.json– Ismael Aug 09 '17 at 17:16--datadir <directory>to point an empty directory to discard any problems with your old data directory. – Ismael Aug 10 '17 at 15:30"geth --datadir=./chaindata --port 30309" . After that in another console, I use "geth attach". And after that when I try miner.start(1) , console shows null and does nothing. I will try to follow the tutorial which you have mentioned. If there is something wrong in my approach, please tell – UbuntuCoder Aug 11 '17 at 04:56
Updated mining thread,Starting mining operation,Commit new mining work. – Ismael Aug 11 '17 at 18:22eth.coinbasecontain a valid address? Also checketh.accounts[0]. But I'd recommend to ask a new question anyway, because people tend to do not look at old questions. You can answer this question with your solution so it can helps other in a similar situation. – Ismael Aug 17 '17 at 04:17