首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在Ubuntu 14.04上进行地雷

无法在Ubuntu 14.04上进行地雷
EN

Ethereum用户
提问于 2016-05-30 17:40:29
回答 1查看 1.2K关注 0票数 3

我已经尝试在一台Ubuntu14.04机器上挖掘了两天,但是我无法让它工作;没有错误消息或任何东西,但行为非常奇怪:

我尝试过通过miner.start()使用geth进行挖掘。这就是发生的事情:

代码语言:javascript
复制
> miner.start()
true
> miner.hashrate
undefined
> miner
{
  makeDAG: function(),
  setEtherbase: function(),
  setExtra: function(),
  setGasPrice: function(),
  start: function(),
  startAutoDAG: function(),
  stop: function(),
  stopAutoDAG: function()
}

为什么miner.hashrate是未定义的?另外,如果我像这样使用ethminer : geth.log rpccorsdomain 2>> geth.log,然后在另一个终端启动ethminer。这是种族矿工的产出:

代码语言:javascript
复制
miner  19:35:55.415|ethminer  Getting work package...
JSON-RPC problem. Probably couldn't connect. Retrying in 1... 
miner  19:35:57.421|ethminer  Getting work package...
miner  19:35:57.424|ethminer  Grabbing DAG for #f6a1824c…
miner  19:36:06.043|ethminer  Got work package:
miner  19:36:06.043|ethminer    Header-hash: cf2be73851ae76910bc50b75fa3c2766c4c4e528b8fbc23a9a26c68cc3dbb566
  ℹ  19:36:06.043|ethminer  Loading full DAG of seedhash: #0823bb39…
miner  19:36:06.043|ethminer    Seedhash: f6a1824c2bc745217912823098bb6f07de2b0295d30355934a247b1e87931763
miner  19:36:06.043|ethminer    Target: 000000000006f5ba22dcdac38f1d36394c6ffcb84826f3da17af548ce69ad50c
miner  19:36:06.546|ethminer  Mining on PoWhash #cf2be738… : 0 H/s = 0 hashes / 0.5 s
  ℹ  19:36:14.783|ethminer  Full DAG loaded
miner  19:36:15.283|ethminer  Mining on PoWhash #cf2be738… : 0 H/s = 0 hashes / 8.736 s
miner  19:36:15.785|ethminer  Mining on PoWhash #cf2be738… : 0 H/s = 0 hashes / 0.502 s
miner  19:36:16.287|ethminer  Mining on PoWhash #cf2be738… : 0 H/s = 0 hashes / 0.501 s
miner  19:36:16.790|ethminer  Mining on PoWhash #cf2be738… : 0 H/s = 0 hashes / 0.503 s
miner  19:36:17.293|ethminer  Mining on PoWhash #cf2be738… : 0 H/s = 0 hashes / 0.503 s
miner  19:36:17.796|ethminer  Mining on PoWhash #cf2be738… : 0 H/s = 0 hashes / 0.502 s
miner  19:36:18.298|ethminer  Mining on PoWhash #cf2be738… : 0 H/s = 0 hashes / 0.501 s
miner  19:36:18.800|ethminer  Mining on PoWhash #cf2be738… : 0 H/s = 0 hashes / 0.502 s
miner  19:36:19.302|ethminer  Mining on PoWhash #cf2be738… : 0 H/s = 0 hashes / 0.502 s
miner  19:36:19.806|ethminer  Mining on PoWhash #cf2be738… : 0 H/s = 0 hashes / 0.503 s

如果我在这样的一行中运行它: geth --rpccorsdomain 2>> geth.log & ethminer,结果是:

代码语言:javascript
复制
miner  19:37:31.513|ethminer  Getting work package...
  ✘  19:37:31.515|ethminer  Failed to submit hashrate.
  ✘  19:37:31.515|ethminer  Dynamic exception type: jsonrpc::JsonRpcException
std::exception::what: Exception -32003 : Client connector error: libcurl error: 7 -> Could not connect to http://127.0.0.1:8545

JSON-RPC problem. Probably couldn't connect. Retrying in 1... 
miner  19:37:33.515|ethminer  Getting work package...
  ✘  19:37:33.516|ethminer  Failed to submit hashrate.
  ✘  19:37:33.516|ethminer  Dynamic exception type: jsonrpc::JsonRpcException
std::exception::what: Exception -32003 : Client connector error: libcurl error: 7 -> Could not connect to http://127.0.0.1:8545

JSON-RPC problem. Probably couldn't connect. Retrying in 1... 
miner  19:37:35.517|ethminer  Getting work package...
  ✘  19:37:35.518|ethminer  Failed to submit hashrate.
  ✘  19:37:35.518|ethminer  Dynamic exception type: jsonrpc::JsonRpcException
std::exception::what: Exception -32003 : Client connector error: libcurl error: 7 -> Could not connect to http://127.0.0.1:8545

有人能向我解释一下这里发生了什么以及如何解决这个问题吗?

PS:这些是版本: geth: 1.4.5-稳定

ethminer版本1.2.5,构建:Linux/g++/解释器/RelWithDebInfo

EN

回答 1

Ethereum用户

发布于 2016-05-30 18:46:15

它不再在矿工之下,它在eth之下:

代码语言:javascript
复制
> miner.hashrate
undefined
> eth.hashrate
13468
票数 2
EN
页面原文内容由Ethereum提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://ethereum.stackexchange.com/questions/4445

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档