Explore Courses Blog Tutorials Interview Questions
0 votes
in Blockchain by (12.7k points)

I am relatively new to Ethereum. I was trying to set up a private test network. I used the following genesis file


"config": {

"chainId": 15, 

"homesteadBlock": 0,

"eip155Block": 0,

"eip158Block": 0


"difficulty": "20",

"gasLimit": "2100000",

"alloc": {


    { "balance": "300000" },


    { "balance": "400000" }



The following commands were used to initialise and start the network:

geth --datadir "C:\Users\Mahe\Desktop\Ethereum\data" init "Path_to_genesis"

geth --datadir "C:\Users\Mahe\Desktop\Ethereum\data" --nodiscover --networkid 65535 --port 60303 --rpc --rpccorsdomain "*" --rpcapi "web3,eth,personal,miner" console 2>Node2.log

The network started successfully, after which I created a new account and set it as coinbase. eth.coinbase is set and gives the address of the created account. However, there is no increase of ether in the created account upon mining(eth.getBalance(eth.accounts[0]) returns 0). Any help would be appreciated.

1 Answer

0 votes
by (29.5k points)

I think the issue is that the blocks are not getting mined quickly. The block generation speed shortened. What you need to do is balance the Coinbase account and start increasing when blocks are mined successfully.

Related questions

Browse Categories