MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Add

Method Add

src/addrman.h:526–537  ·  view source on GitHub ↗

Add a single address.

Source from the content-addressed store, hash-verified

524
525 //! Add a single address.
526 bool Add(const CAddress &addr, const CNetAddr& source, int64_t nTimePenalty = 0)
527 {
528 LOCK(cs);
529 bool fRet = false;
530 Check();
531 fRet |= Add_(addr, source, nTimePenalty);
532 Check();
533 if (fRet) {
534 LogPrint(BCLog::ADDRMAN, "Added %s from %s: %i tried, %i new\n", addr.ToStringIPPort(), source.ToString(), nTried, nNew);
535 }
536 return fRet;
537 }
538
539 //! Add multiple addresses.
540 bool Add(const std::vector<CAddress> &vAddr, const CNetAddr& source, int64_t nTimePenalty = 0)

Callers 4

ConnectBlockMethod · 0.45
ThreadDNSAddressSeedMethod · 0.45
ThreadOpenConnectionsMethod · 0.45
AddNewAddressesMethod · 0.45

Calls 5

CheckFunction · 0.85
ToStringIPPortMethod · 0.80
ToStringMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected