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

Method Add_

src/addrman.cpp:671–681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669}
670
671bool AddrManImpl::Add_(const std::vector<CAddress> &vAddr, const CNetAddr& source, int64_t nTimePenalty)
672{
673 int added{0};
674 for (std::vector<CAddress>::const_iterator it = vAddr.begin(); it != vAddr.end(); it++) {
675 added += AddSingle(*it, source, nTimePenalty) ? 1 : 0;
676 }
677 if (added > 0) {
678 LogPrint(BCLog::ADDRMAN, "Added %i addresses (of %i) from %s: %i tried, %i new\n", added, vAddr.size(), source.ToString(), nTried, nNew);
679 }
680 return added > 0;
681}
682
683void AddrManImpl::Attempt_(const CService& addr, bool fCountFailure, int64_t nTime)
684{

Callers

nothing calls this directly

Calls 4

beginMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected