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
- Branch
- ava-diff-addr
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 10155 Build 18136: Default Diff Build & Tests Build 18135: arc lint + arc unit
Event Timeline
test/functional/abc-p2p-avalanche.py | ||
---|---|---|
177 | 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.