diff options
| author | Pieter Wuille <[email protected]> | 2016-06-08 19:12:22 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-06-13 17:40:16 +0200 |
| commit | ee06e04369c37da21e048fda849cce2a1f066f84 (patch) | |
| tree | e38a64000268b4c41c00184b3d2f9da118bd98ce /src/addrman.cpp | |
| parent | Don't require services in -addnode (diff) | |
| download | discoin-ee06e04369c37da21e048fda849cce2a1f066f84.tar.xz discoin-ee06e04369c37da21e048fda849cce2a1f066f84.zip | |
Introduce enum ServiceFlags for service flags
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 d1e98d8ac..cebb1c8e5 100644 --- a/src/addrman.cpp +++ b/src/addrman.cpp @@ -263,7 +263,7 @@ bool CAddrMan::Add_(const CAddress& addr, const CNetAddr& source, int64_t nTimeP pinfo->nTime = std::max((int64_t)0, addr.nTime - nTimePenalty); // add services - pinfo->nServices |= addr.nServices; + pinfo->nServices = ServiceFlags(pinfo->nServices | addr.nServices); // do not update if no new information is present if (!addr.nTime || (pinfo->nTime && addr.nTime <= pinfo->nTime)) @@ -502,7 +502,7 @@ void CAddrMan::Connected_(const CService& addr, int64_t nTime) info.nTime = nTime; } -void CAddrMan::SetServices_(const CService& addr, uint64_t nServices) +void CAddrMan::SetServices_(const CService& addr, ServiceFlags nServices) { CAddrInfo* pinfo = Find(addr); |