nLastTry is only used for addrman entries

No need to define it for every CAddress, as it's memory only anyway.
This commit is contained in:
Pieter Wuille
2015-04-19 11:10:13 -07:00
parent 8f955b9661
commit 1d5b47a903
5 changed files with 10 additions and 13 deletions

View File

@@ -332,10 +332,10 @@ void CAddrMan::Attempt_(const CService& addr, int64_t nTime)
info.nAttempts++;
}
CAddress CAddrMan::Select_()
CAddrInfo CAddrMan::Select_()
{
if (size() == 0)
return CAddress();
return CAddrInfo();
// Use a 50% chance for choosing between tried and new table entries.
if (nTried > 0 && (nNew == 0 || GetRandInt(2) == 0)) {