4

我无法通过 geth 控制台在我的私有链上挖矿,卡在下面的步骤中。

    > 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

环境:阿里云服务器,Ubantu X86_64;1GB RAM 1 个 CPU 内核。

这是我使用的 genesis.json:

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

创建节点1

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

启动node1

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

另外:在我的 MAC 笔记本电脑中使用相同的配置和命令进行挖掘工作正常。也许矿工卡在云服务器中是因为缺少 CPU 内核或 RAM,但我不确定。

有人可以帮忙吗?

4

1 回答 1

3

尝试删除 datadir/.etash 并再次启动矿工。(这可能是一个错误 github.com/ethereum/go-ethereum/issues/2174)或升级您的云服务器资源。

于 2018-01-07T06:28:05.510 回答