Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add network hashrate chart #723

Closed
jzbz opened this issue Oct 6, 2018 · 6 comments
Closed

Add network hashrate chart #723

jzbz opened this issue Oct 6, 2018 · 6 comments
Assignees

Comments

@jzbz
Copy link
Member

jzbz commented Oct 6, 2018

Currently https://explorer.dcrdata.org/charts has PoW difficulty but not network hashrate. Having the latter would be useful as well.

@chappjc
Copy link
Member

chappjc commented Oct 8, 2018

I started looking into this today. We have a CalculateHashRate function that does the computation based on difficulty and target block time. However, the implementation in dcrd's getnetworkhashps is very different, accumulating work over a variable period of blocks. The hander is defined here: https://github.com/decred/dcrd/blob/7e3dfb21974681090ad703c2350fe8146f14aa08/rpcserver.go#L3154

@dmigwi dmigwi self-assigned this Oct 8, 2018
@xaur
Copy link

xaur commented Oct 10, 2018

Hashrate will be derived solely from chain data, not using anything that pools report -- correct?

@chappjc
Copy link
Member

chappjc commented Oct 10, 2018

Absolutely. Only based on work done on the blockchain over a given period

@oregonisaac
Copy link

Ping: suggesting we move forward with adding current hash rate based on the block difficulty and the default past 120 (or some other stated number) blocks using RPCs in dcrd.

@chappjc
Copy link
Member

chappjc commented Nov 17, 2018

@buck54321 has a proper solution underway

@chappjc
Copy link
Member

chappjc commented Nov 28, 2018

Resolved by #808

@chappjc chappjc closed this as completed Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants