0 votes
1 view
in Blockchain by (4.1k points)

I'm not able to mine on my private chain via geth console, get stuck in the following step.

    > miner.start()
    INFO [01-05|11:11:22] Updated mining threads                    threads=0
    INFO [01-05|11:11:22] Transaction pool price threshold updated price=18000000000 null
    > INFO [01-05|11:11:22] Starting mining operation
    INFO [01-05|11:11:22] Commit new mining work                   number=1 txs=0 uncles=0 elapsed=482.122┬Ás
Environment: AliCloud server with Ubantu X86_64; 1GB RAM 1 CPU Core.

here is genesis.json I used:

    "config": {
    "chainId": 201804,
    "homesteadBlock": 0,
    "eip155Block": 0,
    "eip158Block": 0
"timestamp": "0x0",
"gasLimit": "0x888888888000000",
"difficulty": "0x400",
"coinbase": "0x9933333333333333333333333333333333333333",
"alloc": {}

create node1 with

   geth --datadir "node1/" init genesis.json`.  

start node1 with

geth --identity "node1" --rpc --rpcport 8101 --rpccorsdomain "*" --datadir "./node1" --port 31001 --rpcapi "db,eth,net,web3" --networkid 201804 console

In additional: The mining works fine with same configurations and commands in my MAC laptop. Maybe miner stuck in cloud server because lack of CPU core or RAM, but I'm not sure.

Could any one help on this?

1 Answer

0 votes
by (14.4k points)

The issue that you are opposed to is not that big. To resolve it, you can either upgrade your cloud server resources or restart the miner that you are using after deleting datadir/.etash

Welcome to Intellipaat Community. Get your technical queries answered by top developers !