From 5f672ca8c134181a6e7afc0c5036df01b8f7ae28 Mon Sep 17 00:00:00 2001 From: Pavlos Antoniou Date: Thu, 1 Jun 2017 17:21:03 +0200 Subject: [PATCH] net: Denote some CNode functions const --- src/net.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net.h b/src/net.h index 7f9ec1a57..00d04e991 100644 --- a/src/net.h +++ b/src/net.h @@ -711,7 +711,7 @@ public: return nMyStartingHeight; } - int GetRefCount() + int GetRefCount() const { assert(nRefCount >= 0); return nRefCount; @@ -723,7 +723,7 @@ public: { nRecvVersion = nVersionIn; } - int GetRecvVersion() + int GetRecvVersion() const { return nRecvVersion; }