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
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
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. |