geth私网不挖矿

Geth private net not mining

我的geth私网没有挖矿。我试过设置 etherbase,当我立即调用它时它说是真的,它显示为未定义。左边是geth控制台,右边是geth JS控制台。 geth 控制台卡在 "commit new mining work" 上,我感觉这是因为 etherbase 问题。

1.).setEtherbase()不是个人对象的方法。这是矿工对象的一种方法。这样 miner.setEtherbase('0x4...') 就可以了。

2.) miner.start() 通常没有输出。您控制台将其解释为 null

3.) 要验证您的帐户,您应该使用 eth.coinbase 而不是 miner.etherbase