diff options
Diffstat (limited to 'src/addrman.h')
-rw-r--r-- | src/addrman.h | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/addrman.h b/src/addrman.h index 3ee8c3ee09..fa155fb00a 100644 --- a/src/addrman.h +++ b/src/addrman.h @@ -517,22 +517,7 @@ public: return vRandom.size(); } - //! Add a single address. - bool Add(const CAddress &addr, const CNetAddr& source, int64_t nTimePenalty = 0) - EXCLUSIVE_LOCKS_REQUIRED(!cs) - { - LOCK(cs); - bool fRet = false; - Check(); - fRet |= Add_(addr, source, nTimePenalty); - Check(); - if (fRet) { - LogPrint(BCLog::ADDRMAN, "Added %s from %s: %i tried, %i new\n", addr.ToStringIPPort(), source.ToString(), nTried, nNew); - } - return fRet; - } - - //! Add multiple addresses. + //! Add addresses to addrman's new table. bool Add(const std::vector<CAddress> &vAddr, const CNetAddr& source, int64_t nTimePenalty = 0) EXCLUSIVE_LOCKS_REQUIRED(!cs) { |