This is actually done in tests by subclassing CAddrMan, but making it part of the main CAddrMan class makes it possible to use a deterministic address manager as a member of CConnman. There is no change in behavior.
Details
Details
- Reviewers
sdulfari - Group Reviewers
Restricted Project - Commits
- rABCbb9328ffcfe2: Add a method to make addrman deterministic
ninja all check-all
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- addrman_deterministic
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 19777 Build 39268: Build Diff build-debug · build-without-wallet · lint-circular-dependencies · build-diff · build-clang · build-clang-tidy Build 39267: arc lint + arc unit
Event Timeline
src/addrman.h | ||
---|---|---|
814–816 ↗ | (On Diff #34587) | This has better code reuse and makes it much more likely that tests will break cleanly if MakeDeterministic is called part way through the test for some reason. |