test: #29007 follow ups #29636
pull 0xB10C wants to merge 3 commits into bitcoin:master from 0xB10C:2024-03-29007-follow-ups changing 3 files +16 −12-
0xB10C commented at 4:00 pm on March 12, 2024: contributorA few, small follow-ups to #29007. See commit messages for details.
-
DrahtBot commented at 4:00 pm on March 12, 2024: contributor
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Code Coverage
For detailed information about the code coverage, see the test coverage report.
Reviews
See the guideline for information on the review process.
Type Reviewers ACK stratospher, mzumsande, maflcko If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #29641 (scripted-diff: Use LogInfo/LogDebug over LogPrintf/LogPrint by maflcko)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
-
DrahtBot added the label Tests on Mar 12, 2024
-
0xB10C commented at 4:05 pm on March 12, 2024: contributorSince
addpeeraddress
can currently fail to add an address to thetried
table but will report{ success: true }
, it makes sense to get that fixed with #28998 first before this PR, especially the first commit, is ready for review. The other two commits are minor and can wait. -
0xB10C force-pushed on Mar 13, 2024
-
fanquake requested review from stratospher on Mar 20, 2024
-
fanquake requested review from mzumsande on Mar 20, 2024
-
test: check that addrman seeding is successful
The addpeeraddress calls can fail due to collisions. As we are using a deteministic addrman, they won't fail with the current bucket/position calculation. However, if the calculation is changed, they might collide and fail silently causing tests using `seed_addrman()` to fail. Assert that the addpeeraddress calls are successful.
-
addrman: drop /*deterministic=*/ comment
Just having deterministic is enough. See https://github.com/bitcoin/bitcoin/pull/29007#discussion_r1488241966
-
init: clarify -test error
See https://github.com/bitcoin/bitcoin/pull/29007#discussion_r1469388717
-
in src/addrdb.cpp:208 in 777fb3d920 outdated
203@@ -204,15 +204,15 @@ util::Result<std::unique_ptr<AddrMan>> LoadAddrman(const NetGroupManager& netgro 204 LogPrintf("Loaded %i addresses from peers.dat %dms\n", addrman->Size(), Ticks<std::chrono::milliseconds>(SteadyClock::now() - start)); 205 } catch (const DbNotFoundError&) { 206 // Addrman can be in an inconsistent state after failure, reset it 207- addrman = std::make_unique<AddrMan>(netgroupman, /*deterministic=*/deterministic, /*consistency_check_ratio=*/check_addrman); 208+ addrman = std::make_unique<AddrMan>(netgroupman, deterministic, /*consistency_check_ratio=*/check_addrman); 209 LogPrintf("Creating peers.dat because the file was not found (%s)\n", fs::quoted(fs::PathToString(path_addr)));
maflcko commented at 7:03 am on March 21, 2024:nit (feel free to ignore): If you want, you can also replaceLogPrintf
withLogInfo
for clarity, while touching this file.
0xB10C commented at 2:43 pm on March 23, 2024:I’m not doing this for now as I think this is slightly out-of-scope of this PR even if I touch the file.0xB10C force-pushed on Mar 23, 20240xB10C marked this as ready for review on Mar 23, 2024stratospher commented at 12:20 pm on March 24, 2024: contributortested ACK 9a44a20.
you can also include the check in
test/functional/feature_asmap.py
sinceaddpeeraddress
+ deterministic addrman is present there too.mzumsande commented at 8:12 pm on March 24, 2024: contributorCode Review ACK 9a44a20fb790f3be5d5d5d8f5d0f48aac633b2a4maflcko commented at 7:02 am on March 25, 2024: memberlgtm ACK 9a44a20fb790f3be5d5d5d8f5d0f48aac633b2a4fanquake merged this on Mar 25, 2024fanquake closed this on Mar 25, 2024
0xB10C deleted the branch on Mar 25, 2024bitcoin locked this on Mar 25, 2025
github-metadata-mirror
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: 2025-04-19 00:12 UTC
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: 2025-04-19 00:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me