diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-01-07 06:19:46 -0800 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-01-07 06:19:46 -0800 |
commit | 1684f98b27de9323d24ee4489af54dd84083956a (patch) | |
tree | 9c4313e815bd77e817f2dc5b796347d343458d0e /src/util.cpp | |
parent | 7486c64dd8436febbe59e82dbb875e83ad6b5194 (diff) | |
parent | 67a42f929b1434f647c63922fd02dc2b93b28060 (diff) |
Merge pull request #735 from sipa/netbase
Network stack refactor
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.cpp b/src/util.cpp index 3805e077a1..ac7bacb7f5 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -948,12 +948,12 @@ int64 GetAdjustedTime() return GetTime() + nTimeOffset; } -void AddTimeData(unsigned int ip, int64 nTime) +void AddTimeData(const CNetAddr& ip, int64 nTime) { int64 nOffsetSample = nTime - GetTime(); // Ignore duplicates - static set<unsigned int> setKnown; + static set<CNetAddr> setKnown; if (!setKnown.insert(ip).second) return; @@ -1008,7 +1008,6 @@ void AddTimeData(unsigned int ip, int64 nTime) - string FormatVersion(int nVersion) { if (nVersion%100 == 0) @@ -1178,3 +1177,4 @@ bool CCriticalSection::TryEnter(const char*, const char*, int) } #endif /* DEBUG_LOCKORDER */ + |