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 block hash saving for non canon blocks #857

Commits on May 5, 2015

  1. Simplify CalculateTD function

    Gustav Simonsson committed May 5, 2015
    Configuration menu
    Copy the full SHA
    fee99b3 View commit details
    Browse the repository at this point in the history
  2. Remove old CalcTotalDiff function, improve code comments

    Gustav Simonsson committed May 5, 2015
    Configuration menu
    Copy the full SHA
    ff3a891 View commit details
    Browse the repository at this point in the history
  3. Remove debug logging

    Gustav Simonsson committed May 5, 2015
    Configuration menu
    Copy the full SHA
    2877030 View commit details
    Browse the repository at this point in the history
  4. Store block hash under block num even for non-canonical blocks

    * Ensure block hash is stored with the block number as key even if
      a block is non-canonical (not a new tip of the chain), this is
      required by the new chain forking code in the edge cases tested
      by BlockTests/bcUncleTest.json
    * Rename and split up related DB / cache storage functions to make
      them easier to read.
    * Move if statement's simple statement to it's own line to get
      distinct stacktrace line number in case we get future bugs here.
    Gustav Simonsson committed May 5, 2015
    Configuration menu
    Copy the full SHA
    8589532 View commit details
    Browse the repository at this point in the history