diff --git a/src/seeder/db.h b/src/seeder/db.h --- a/src/seeder/db.h +++ b/src/seeder/db.h @@ -297,18 +297,14 @@ // internal routines that assume proper locks are acquired // add an address void Add_(const CAddress &addr, bool force); - // get an IP to test (must call Good_, Bad_, or Skipped_ on result - // afterwards) + // get an IP to test (must call Good_ or Bad_ on result afterwards) bool Get_(CServiceResult &ip, int &wait); - bool GetMany_(std::vector &ips, int max, int &wait); // mark an IP as good (must have been returned by Get_) void Good_(const CService &ip, int clientV, std::string clientSV, int blocks); // mark an IP as bad (and optionally ban it) (must have been returned by // Get_) void Bad_(const CService &ip, int ban); - // mark an IP as skipped (must have been returned by Get_) - void Skipped_(const CService &ip); // look up id of an IP int Lookup_(const CService &ip); // get a random set of IPs (shared lock only) @@ -428,27 +424,6 @@ } } - void Good(const CService &addr, int clientVersion, - std::string clientSubVersion, int blocks) { - LOCK(cs); - Good_(addr, clientVersion, clientSubVersion, blocks); - } - - void Skipped(const CService &addr) { - LOCK(cs); - Skipped_(addr); - } - - void Bad(const CService &addr, int ban = 0) { - LOCK(cs); - Bad_(addr, ban); - } - - bool Get(CServiceResult &ip, int &wait) { - LOCK(cs); - return Get_(ip, wait); - } - void GetMany(std::vector &ips, int max, int &wait) { LOCK(cs); while (max > 0) { diff --git a/src/seeder/db.cpp b/src/seeder/db.cpp --- a/src/seeder/db.cpp +++ b/src/seeder/db.cpp @@ -138,17 +138,6 @@ nDirty++; } -void CAddrDb::Skipped_(const CService &addr) { - int id = Lookup_(addr); - if (id == -1) { - return; - } - unkId.erase(id); - ourId.push_back(id); - // fprintf(stdout, "%s: skipped\n", ToString(addr).c_str()); - nDirty++; -} - void CAddrDb::Add_(const CAddress &addr, bool force) { if (!force && !addr.IsRoutable()) { return;