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

Use network when calculating difficulty #2168

Merged

Commits on Nov 3, 2023

  1. Improve difficulty rustdocs

    Copy a sentence from the `pow::Target::difficulty` function onto the
    `block:Header::difficulty` function.
    tcharding committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    62af5b5 View commit details
    Browse the repository at this point in the history
  2. Use network when calculating difficulty

    The difficulty is a ratio  of the max and current targets, since the
    max is network specific the difficulty calculation is also network
    specific.
    
    We already have network specific maximum target constants, use them when
    calculating the difficulty.
    tcharding committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    12d615d View commit details
    Browse the repository at this point in the history