regtest blocks are relatively deterministic, so generating a block with the
same height, coinbase, timestamp, etc. may coincide with a block that was already generated.
In this case, it's possible to coincide with a block that was invalidated using the same
coinbase address above this line.
Details
Details
- Reviewers
Fabien deadalnix - Group Reviewers
Restricted Project - Commits
- rSTAGING22a803180de2: Use a different address in Avalanche test to prevent duplicate blocks
rABC22a803180de2: Use a different address in Avalanche test to prevent duplicate blocks
test_runner.py abc-p2p-avalanche
Run this many times. On master, it's encountered ~10% of the time.
With this patch, we should not encounter it.
Note that abc-p2p-avalanche is still broken on master.
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
test/functional/abc-p2p-avalanche.py | ||
---|---|---|
177 ↗ | (On Diff #18709) | There is feature for that: fork_node.get_deterministic_priv_key().address |
Comment Actions
Use get_deterministic_priv_key instead, as fork_node's deterministic key won't collide with node's
Comment Actions
Fixed overwriting the address variable. These are expected to be re-used in the future, so I
will not remove those variables outright.