Bitcoin Core
27.99.0
P2P Digital Currency
|
Public Member Functions | |
AddrManDeterministic (const NetGroupManager &netgroupman, FuzzedDataProvider &fuzzed_data_provider) | |
bool | operator== (const AddrManDeterministic &other) const |
Compare with another AddrMan. More... | |
Public Member Functions inherited from AddrMan | |
AddrMan (const NetGroupManager &netgroupman, bool deterministic, int32_t consistency_check_ratio) | |
~AddrMan () | |
template<typename Stream > | |
void | Serialize (Stream &s_) const |
template<typename Stream > | |
void | Unserialize (Stream &s_) |
size_t | Size (std::optional< Network > net=std::nullopt, std::optional< bool > in_new=std::nullopt) const |
Return size information about addrman. More... | |
bool | Add (const std::vector< CAddress > &vAddr, const CNetAddr &source, std::chrono::seconds time_penalty=0s) |
Attempt to add one or more addresses to addrman's new table. More... | |
bool | Good (const CService &addr, NodeSeconds time=Now< NodeSeconds >()) |
Mark an address record as accessible and attempt to move it to addrman's tried table. More... | |
void | Attempt (const CService &addr, bool fCountFailure, NodeSeconds time=Now< NodeSeconds >()) |
Mark an entry as connection attempted to. More... | |
void | ResolveCollisions () |
See if any to-be-evicted tried table entries have been tested and if so resolve the collisions. More... | |
std::pair< CAddress, NodeSeconds > | SelectTriedCollision () |
Randomly select an address in the tried table that another address is attempting to evict. More... | |
std::pair< CAddress, NodeSeconds > | Select (bool new_only=false, std::optional< Network > network=std::nullopt) const |
Choose an address to connect to. More... | |
std::vector< CAddress > | GetAddr (size_t max_addresses, size_t max_pct, std::optional< Network > network, const bool filtered=true) const |
Return all or many randomly selected addresses, optionally by network. More... | |
std::vector< std::pair< AddrInfo, AddressPosition > > | GetEntries (bool from_tried) const |
Returns an information-location pair for all addresses in the selected addrman table. More... | |
void | Connected (const CService &addr, NodeSeconds time=Now< NodeSeconds >()) |
We have successfully connected to this peer. More... | |
void | SetServices (const CService &addr, ServiceFlags nServices) |
Update an entry's service bits. More... | |
std::optional< AddressPosition > | FindAddressEntry (const CAddress &addr) |
Test-only function Find the address record in AddrMan and return information about its position. More... | |
Additional Inherited Members | |
Protected Attributes inherited from AddrMan | |
const std::unique_ptr< AddrManImpl > | m_impl |
Definition at line 121 of file addrman.cpp.
|
inlineexplicit |
Definition at line 124 of file addrman.cpp.
|
inline |
Compare with another AddrMan.
This compares:
mapInfo
(the keys aka ids are ignored)Definition at line 137 of file addrman.cpp.