无法在我的私人链上开始挖掘

时间:2018-01-05 03:32:28

标签: cloud blockchain ethereum go-ethereum

我无法通过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的AliCloud服务器; 1GB RAM 1 CPU核心。

这里是genesis.json我用过:

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

使用

创建node1
   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核心或内存而陷入云服务器,但我不确定。

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:2)

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