aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2016-06-08 19:12:22 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2016-06-13 17:40:16 +0200
commitee06e04369c37da21e048fda849cce2a1f066f84 (patch)
treee38a64000268b4c41c00184b3d2f9da118bd98ce /src/main.cpp
parent15bf863219abe968ebe9e59fed4806c9fd07a58b (diff)
downloadbitcoin-ee06e04369c37da21e048fda849cce2a1f066f84.tar.xz
Introduce enum ServiceFlags for service flags
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index bcaf095ab3..c1569545b4 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4611,7 +4611,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
CAddress addrMe;
CAddress addrFrom;
uint64_t nNonce = 1;
- vRecv >> pfrom->nVersion >> pfrom->nServices >> nTime >> addrMe;
+ uint64_t nServiceInt;
+ vRecv >> pfrom->nVersion >> nServiceInt >> nTime >> addrMe;
+ pfrom->nServices = ServiceFlags(nServiceInt);
if (!pfrom->fInbound)
{
addrman.SetServices(pfrom->addr, pfrom->nServices);