1. 26 Oct, 2021 1 commit
    • meowsbits's avatar
      core: use block difficulty for genesis (#23793) · c72b16c3
      meowsbits authored
      * core: write test showing that TD is not stored properly at genesis
      
      The ToBlock method applies a default value for an empty
      difficulty value. This default is not carried over through the Commit
      method because the TotalDifficulty database write writes the
      original difficulty value (nil) instead of the defaulty value
      present on the genesis Block.
      
      Date: 2021-10-22 08:25:32-07:00
      Signed-off-by: 's avatarmeows <b5c6@protonmail.com>
      
      * core: write TD value from Block, not original genesis value
      
      This an issue where a default TD value was not written to
      the database, resulting in a 0 value TD at genesis.
      
      A test for this issue was provided at 90e3ffd393
      
      Date: 2021-10-22 08:28:00-07:00
      Signed-off-by: 's avatarmeows <b5c6@protonmail.com>
      
      * core: fix tests by adding GenesisDifficulty to expected result
      
      See prior two commits.
      
      Date: 2021-10-22 09:16:01-07:00
      Signed-off-by: 's avatarmeows <b5c6@protonmail.com>
      
      * les: fix test with genesis change
      Co-authored-by: 's avatarMartin Holst Swende <martin@swende.se>
      c72b16c3
  2. 25 Oct, 2021 2 commits
  3. 21 Oct, 2021 2 commits
  4. 20 Oct, 2021 6 commits
  5. 19 Oct, 2021 1 commit
  6. 18 Oct, 2021 9 commits
  7. 15 Oct, 2021 3 commits
  8. 14 Oct, 2021 1 commit
  9. 13 Oct, 2021 5 commits
  10. 12 Oct, 2021 2 commits
  11. 11 Oct, 2021 8 commits