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 next target difficulty to RPC output #1615

Merged
merged 2 commits into from
Dec 24, 2019

Commits on Dec 24, 2019

  1. Move GetDifficulty() functions to main.cpp

    The GetDifficulty() and GetBlockDifficulty() functions were originally
    used to transform difficulty values for display in the GUI and in RPC.
    Since core areas of Gridcoin use these functions now, we'll move these
    into main.cpp.
    cyrossignol committed Dec 24, 2019
    Configuration menu
    Copy the full SHA
    9081a72 View commit details
    Browse the repository at this point in the history
  2. Add next target difficulty to RPC output

    This adds the difficulty for the next block to the output of:
    
     - getinfo
     - getblockchaininfo
     - getmininginfo
     - getdifficulty
    
    ...and removes invalid proof-of-work difficulty from the output of the
    "getinfo" RPC function.
    cyrossignol committed Dec 24, 2019
    Configuration menu
    Copy the full SHA
    9b1c3b0 View commit details
    Browse the repository at this point in the history