test: Default to running -checkblockindex in test_framework (TheBlueMatt) #13912

pull Sjors wants to merge 1 commits into bitcoin:master from Sjors:2018/08/test-checkblockindex changing 2 files +2 −1
  1. Sjors commented at 4:24 pm on August 8, 2018: member

    Salvaged from #12138, and adjusted to current test framework conventions.

    Block index inconsistencies are one of the most critical types of bugs we could see. Making sure we get good coverage of CheckBlockIndex() is pretty important (and there is minimal, if any performance difference in a default run).

    Test suite on master takes 928-988 seconds on my machine, with this change it takes 901-1045 seconds (n=2, and not a perfect experimental setup).

  2. Default to running -checkblockindex in test_framework
    Block index inconsistencies are one of the most critical types of
    bugs we could see. Making sure we get good coverage of
    CheckBlockIndex() is pretty important (and there is minimal, if any
    performance difference in a default run).
    9f47bde3f7
  3. Sjors commented at 4:25 pm on August 8, 2018: member
  4. MarcoFalke commented at 5:02 pm on August 8, 2018: member

    utACK 9f47bde3f727c99c108751bf0b0237a7dde2a224

    Note that we enable tx pool consistency checks for regtest by default and regtest is the network used by the test framework. So an alternative could be to enable it by default for regtest. Though, the current patch is already a clear improvement.

    For reference the help text of the bool arg:

    0  -checkblockindex
    1       Do a full consistency check for mapBlockIndex, setBlockIndexCandidates,
    2       chainActive and mapBlocksUnlinked occasionally. (default: 0)
    
  5. MarcoFalke added the label Tests on Aug 8, 2018
  6. MarcoFalke renamed this:
    Default to running -checkblockindex in test_framework
    test: Default to running -checkblockindex in test_framework
    on Aug 8, 2018
  7. MarcoFalke renamed this:
    test: Default to running -checkblockindex in test_framework
    test: Default to running -checkblockindex in test_framework (TheBlueMatt)
    on Aug 8, 2018
  8. domob1812 commented at 5:34 pm on August 8, 2018: contributor

    I agree with @MarcoFalke - ideally, these checks should be enabled for regtest net automatically, similar to the mempool checks. That seems much cleaner to me than enabling them using command-line arguments (because those can be forgotten / acidentally removed more easily).

    Concept ACK to running the checks regularly on regtest.

  9. Empact commented at 8:13 am on August 11, 2018: member
  10. MarcoFalke closed this on Aug 11, 2018

  11. MarcoFalke referenced this in commit a08533c1a0 on Aug 11, 2018
  12. Sjors deleted the branch on Aug 11, 2018
  13. PastaPastaPasta referenced this in commit 81bf95e464 on Jun 27, 2021
  14. PastaPastaPasta referenced this in commit 23417499e0 on Jun 28, 2021
  15. PastaPastaPasta referenced this in commit 5edf4694d4 on Jun 29, 2021
  16. PastaPastaPasta referenced this in commit d42488ea69 on Jun 29, 2021
  17. PastaPastaPasta referenced this in commit fa5755785b on Jun 29, 2021
  18. PastaPastaPasta referenced this in commit f33c2c8101 on Jun 29, 2021
  19. PastaPastaPasta referenced this in commit b04090df10 on Jun 29, 2021
  20. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-07-05 22:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me