aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_config_args.py
diff options
context:
space:
mode:
authormerge-script <falke.marco@gmail.com>2021-09-27 09:20:25 +0200
committermerge-script <falke.marco@gmail.com>2021-09-27 09:20:25 +0200
commitba3f0b2c48172ef94e9e55ad6a1df789391f59c4 (patch)
tree91491a13864d015c918e92fa1d77d5df831abb56 /test/functional/feature_config_args.py
parent09cb5ec6c8b4468ee3e8c2b3e1a9075907e5c84d (diff)
parent5825b34783545f9470d5ab94b87c918980715675 (diff)
downloadbitcoin-ba3f0b2c48172ef94e9e55ad6a1df789391f59c4.tar.xz
Merge bitcoin/bitcoin#23084: test: avoid non-determinism in asmap-addrman test
5825b34783545f9470d5ab94b87c918980715675 test: avoid non-determinism in asmap-addrman test (Jon Atack) Pull request description: This is the same approach as for the addpeeraddress test in `test/functional/rpc_net.py` in commit 869f1368. The probability of collision when adding an addrman entry is expected to be 1/2^16 = 1/65536 for an address from a different /16. This change hopes to avoid these collisions by adding 1 tried entry before adding 1 new table one, instead of 2 tried entries followed by 2 new entries, which appears to have caused a collision in the CI. To verify the regression test still fails when expected: - `git checkout 181a120 && git cherry-pick ef242f5` - recompile bitcoind - git checkout this branch and run `test/functional/feature_asmap.py`. Expected output: ``` AssertionError: Unexpected stderr bitcoind: ./addrman.h:739: void CAddrMan::Check() const: Assertion `false' failed. != ``` Closes #23078. Co-authored-by: Martin Zumsande <mzumsande@gmail.com> ACKs for top commit: mzumsande: Re-ACK 5825b34783545f9470d5ab94b87c918980715675 Tree-SHA512: eb6624a196fa5617c84aad860c8f91e8a8f60fc9fe2d7168facc298ee38db5e93b7e988e11c2ac1b399dc2c6b8fad360fb10bdbf10e598a1878300388475a200
Diffstat (limited to 'test/functional/feature_config_args.py')
0 files changed, 0 insertions, 0 deletions