Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • crown-core crown-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 75
    • Issues 75
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Crown
  • crown-corecrown-core
  • Issues
  • #343

Closed
Open
Created Jan 25, 2020 by defunctec@defunctecDeveloper

Previous hashrate incorrect

Summary

Using getnetworkhashps "previous block height" should show the correct hashrate.

Expected behavior

It should show a good estimation of hashrate.

Problematic behavior

Instead it returns a huge number that is incorrect.

Crown-core environment info

Windows 10/Linux x64

Crown-core application info

v0.13.4.0 / v0.13.9.2

Possible fixes

I think the code uses a historical average of hashrate. With Auxpow and now MN-PoS the hashrate is significanly different. So when estimating past hashrates using "getnetworkhashps" the code includes auxpow hashrate.

Code could be altered to only calculate from the last 100,000 blocks. This would only distrupt historical hashrate data prior to MN-PoS.

/cc @ashot

Edited Feb 13, 2020 by defunctec
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking