```
Update so the internal function signature matches the external one, as is the case for the other addrman functions.
```
Partial backport of [[https://github.com/bitcoin/bitcoin/pull/22950 | core#22950]]:
https://github.com/bitcoin/bitcoin/pull/22950/commits/14f9e000d05f82b364d5a142cafc70b10406b660
Depends on D12333.