我有一个用于私有区块链的geth节点,而矿工只是没有启动。我检查了coinbase和defaultAccount,它们看起来很好。有没有人知道这个错误的原因是什么?
> eth.mining
false
> miner.start(8)
null
> eth.mining
false
>
> eth.coinbase
"0x5842d6acb3dca819471bde56255f27670aa9b9c6"
> eth.defaultAccount
"0x5842d6acb3dca819471bde56255f27670aa9b9c6"
> eth.getHashrate
function(callback)
> eth.getHashrate()
undefined
>这是genesis.json文件-
{
"config": {
"chainId": 88888,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"coinbase" : "0x0000000000000000000000000000000000000000",
"difficulty" : "0x1",
"extraData" : "0x00",
"gasLimit" : "0x47e7c5",
"nonce" : "0x0000000000000042",
"mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp" : "0x00",
"alloc" : {
"c2d7cf95645d33006175b78989035c7c9061d3f9": {"balance": "888888888888888888888888"}
}
}
Here is the connection string -
geth --datadir /geth/mybc --unlock "0x5842d6acb3dca819471bde56255f27670aa9b9c6" --rpc --rpcaddr "localhost" --rpcport 8545 --networkid 1234 --rpcapi "admin,db,eth,debug,miner,shh,txpool,net,web3,personal" console 2> console.log发布于 2018-02-07 17:22:14
在geth有一个老问题,在那里,它在经营私人连锁企业时不会挖掘交易。解决办法是启动第二名矿工。不确定这个问题是固定的还是同样的问题。
https://ethereum.stackexchange.com/questions/38889
复制相似问题