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).
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
Sjors
commented at 4:25 pm on August 8, 2018:
member
MarcoFalke
commented at 5:02 pm on August 8, 2018:
member
utACK9f47bde3f727c99c108751bf0b0237a7dde2a224
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)
MarcoFalke added the label
Tests
on Aug 8, 2018
MarcoFalke renamed this:
Default to running -checkblockindex in test_framework
test: Default to running -checkblockindex in test_framework
on Aug 8, 2018
MarcoFalke renamed this:
test: Default to running -checkblockindex in test_framework
test: Default to running -checkblockindex in test_framework (TheBlueMatt)
on Aug 8, 2018
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.
Empact
commented at 8:13 am on August 11, 2018:
member
As noted by @MarcoFalke in #13913, checkblockindex is active by default on regtest.
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-12-18 15:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me