net: Denote some CNode functions const

This commit is contained in:
Pavlos Antoniou 2017-06-01 17:21:03 +02:00
parent 64beb13179
commit 5f672ca8c1

View File

@ -711,7 +711,7 @@ public:
return nMyStartingHeight; return nMyStartingHeight;
} }
int GetRefCount() int GetRefCount() const
{ {
assert(nRefCount >= 0); assert(nRefCount >= 0);
return nRefCount; return nRefCount;
@ -723,7 +723,7 @@ public:
{ {
nRecvVersion = nVersionIn; nRecvVersion = nVersionIn;
} }
int GetRecvVersion() int GetRecvVersion() const
{ {
return nRecvVersion; return nRecvVersion;
} }