diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2023-09-29 23:23:36 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2023-10-04 18:08:49 +0200 |
commit | e16f420547fc72a5a2902927aa7138e43c0fb7c8 (patch) | |
tree | 21cd591fe72edb4449f74a49ef66051de81380d0 /src/addrman.h | |
parent | 058488276f8dc244fe534ba45ec8dd2b4b198a2e (diff) | |
download | bitcoin-e16f420547fc72a5a2902927aa7138e43c0fb7c8.tar.xz |
net: Optionally include terrible addresses in GetAddr results
Diffstat (limited to 'src/addrman.h')
-rw-r--r-- | src/addrman.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/addrman.h b/src/addrman.h index 4d44c943ac..6318fbef97 100644 --- a/src/addrman.h +++ b/src/addrman.h @@ -164,10 +164,11 @@ public: * @param[in] max_addresses Maximum number of addresses to return (0 = all). * @param[in] max_pct Maximum percentage of addresses to return (0 = all). * @param[in] network Select only addresses of this network (nullopt = all). + * @param[in] filtered Select only addresses that are considered good quality (false = all). * * @return A vector of randomly selected addresses from vRandom. */ - std::vector<CAddress> GetAddr(size_t max_addresses, size_t max_pct, std::optional<Network> network) const; + std::vector<CAddress> GetAddr(size_t max_addresses, size_t max_pct, std::optional<Network> network, const bool filtered = true) const; /** * Returns an information-location pair for all addresses in the selected addrman table. |