diff options
| author | Pieter Wuille <[email protected]> | 2015-04-19 11:10:13 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2015-04-19 11:10:23 -0700 |
| commit | 1d5b47a9033738743e5323409777b1415a0d0af7 (patch) | |
| tree | 9c5dcb4c5e3e44204d45a53922f205545f77c750 /src/addrman.cpp | |
| parent | Merge pull request #6012 (diff) | |
| download | archived-discoin-1d5b47a9033738743e5323409777b1415a0d0af7.tar.xz archived-discoin-1d5b47a9033738743e5323409777b1415a0d0af7.zip | |
nLastTry is only used for addrman entries
No need to define it for every CAddress, as it's memory only anyway.
Diffstat (limited to 'src/addrman.cpp')
| -rw-r--r-- | src/addrman.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/addrman.cpp b/src/addrman.cpp index 5d9527f0e..cefd70a1b 100644 --- a/src/addrman.cpp +++ b/src/addrman.cpp @@ -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)) { |