Page MenuHomePhabricator

refactor: Mark CAddrMan::Select and GetAddr const
ClosedPublic

Authored by Fabien on Oct 17 2022, 08:03.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCe3d8b59d5e68: refactor: Mark CAddrMan::Select and GetAddr const
Summary
To clarify that a call to this only changes the random state and nothing else.

Backport of core#21940.

The source material does more that what the title says, but only the 2 first commits are relevant to our codebase, making it actually accurate:

This is due to the fact that we didn't backport the fuzzer yet, and the addrman deterministic behavior has been changed in D11827 and the locks properly held in the previous backports.

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable