feature_dbcrash will sometime fail due to duplicated block hashes.
There is a chance that a block get invalidated, and there is a chance
that it only contains the coinbase. Since the address is now a constant,
and mining on regtest is fast, the block hash can end up being the same
that one from the invalidated chain.
This diff ensures that the block time is different to prevent such a
collision.
Details
Details
- Reviewers
jasonbcox - Group Reviewers
Restricted Project - Commits
- rSTAGINGbb670cec1f73: Fix dbcrash spurious failures
rABCbb670cec1f73: Fix dbcrash spurious failures
ninja check-functional-extended
You can help the test to fail (without this diff) by replacing the line:
if random.random() < 1.0 / (current_height + 4 - random_height):
with:
if random.random() < 1.0:
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable