如何在Geth中获取当前的载岩?

发布于 2025-01-29 15:58:07 字数 226 浏览 3 评论 0原文

我在主网上开始了Geth 我做了Miner.start() 它在生成DAG时登录,获取块标头...等 但是当我做eth.hashrate时,它会记录0 另外,当我做Miner.gethashrate()miner.hashrate时,它会引发一个错误,说该函数是未定义的 它之前发生了,帐户余额不断增加 这是一个问题吗? 我如何获得当前的哈希拉特?

I started geth on mainnet
I did miner.start()
it logs when generating the DAG , getting block headers ...etc
but when i do eth.hashrate it logs 0
also when i do miner.getHashRate() or miner.HashRate it throws an error saying that the function is undefined
It happened before , and the account balance keeps infcreasing
Is it a problem ?
How can I get the current Hashrate ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

野生奥特曼 2025-02-05 15:58:07

您可以使用eth.hashrateminer.hashrate检查桥梁,结果为H/S(每秒哈希操作)。

> eth.hashrate
712000

如果它显示0表示以下意见:

  • 您是GPU采矿:Geth唯一的报告内部CPU矿工的哈希特
  • ,或者您正在同步链条:矿工才能启动,直到您完全同步
  • 或者,您正在为矿工生成一个DAG文件:矿工直到最新时期的DAG生成完成
  • 或您最近才开始挖掘:矿工需要几分钟来计算最新的哈希岩

You can check your hashrate with eth.hashrate or miner.hashrate, the result is in H/s (Hash operations per second).

> eth.hashrate
712000

If it shows 0 it means the following:

  • either you are GPU mining: Geth an only report the hashrate of the internal CPU miner
  • or you are synchronizing the chain: the miner does not start until you are full synchronized
  • or you are generating a DAG file for the miner: the miner does not start until the DAG generation for the latest epoch is complete
  • or you just started mining very recently: the miner takes some minutes to compute the latest hashrate
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文