Skip to content

cmd/dcrdata: dynamically scale hashrate units#2037

Draft
ttm-cmd wants to merge 1 commit into
decred:masterfrom
ttm-cmd:charts-dynamic-hashrate-units
Draft

cmd/dcrdata: dynamically scale hashrate units#2037
ttm-cmd wants to merge 1 commit into
decred:masterfrom
ttm-cmd:charts-dynamic-hashrate-units

Conversation

@ttm-cmd
Copy link
Copy Markdown

@ttm-cmd ttm-cmd commented Jun 2, 2026

Closes #1987

This updates hashrate displays to dynamically select an appropriate unit instead of always showing Ph/s.

The hashrate chart and homepage hashrate card now display Th/s, Ph/s, or Eh/s depending on the hashrate value. Homepage websocket updates also refresh the unit.

Verification:

node_modules\.bin\eslint.cmd public --ext .js --ext .jsx --quiet
node_modules\.bin\webpack.cmd --config webpack.prod.js --progress --color
gofmt -w cmd/dcrdata/internal/explorer/templates.go

@ttm-cmd ttm-cmd force-pushed the charts-dynamic-hashrate-units branch from 8dfb15c to 47467af Compare June 2, 2026 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI Suggestion: Network Hashrate Chart Adjustments

1 participant