MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetAddr

Method GetAddr

src/addrman.cpp:1117–1124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1115}
1116
1117std::vector<CAddress> AddrManImpl::GetAddr(size_t max_addresses, size_t max_pct, std::optional<Network> network) const
1118{
1119 LOCK(cs);
1120 Check();
1121 const auto addresses = GetAddr_(max_addresses, max_pct, network);
1122 Check();
1123 return addresses;
1124}
1125
1126void AddrManImpl::Connected(const CService& addr, int64_t nTime)
1127{

Callers 4

GetAddressesMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80
AddrManGetAddrFunction · 0.80

Calls 1

CheckFunction · 0.85

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64