MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / GetAddr

Method GetAddr

src/addrman.cpp:1210–1217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1208}
1209
1210std::vector<CAddress> AddrManImpl::GetAddr(size_t max_addresses, size_t max_pct, std::optional<Network> network, const bool filtered) const
1211{
1212 LOCK(cs);
1213 Check();
1214 auto addresses = GetAddr_(max_addresses, max_pct, network, filtered);
1215 Check();
1216 return addresses;
1217}
1218
1219std::vector<std::pair<AddrInfo, AddressPosition>> AddrManImpl::GetEntries(bool from_tried) const
1220{

Callers 4

GetAddressesUnsafeMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
addrman.cppFile · 0.80
AddrManGetAddrFunction · 0.80

Calls 1

CheckFunction · 0.85

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64