aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-06-04 11:29:34 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2017-06-04 11:32:06 -0700
commit400fdd08cc95f1e85afafd07ddd9c0bed11483ea (patch)
tree249f876fe58e16926ecfe2fc2c9a2172b1cc03e2 /src
parent098b01dc58ff555c473ae58c92c34b03a77eda5f (diff)
parent5f672ca8c134181a6e7afc0c5036df01b8f7ae28 (diff)
downloadbitcoin-400fdd08cc95f1e85afafd07ddd9c0bed11483ea.tar.xz
Merge #10471: Denote functions CNode::GetRecvVersion() and CNode::GetRefCount() as const
5f672ca8c net: Denote some CNode functions const (Pavlos Antoniou) Tree-SHA512: f6d13d8002a4145fd87b34b35a739284e4a9b1af834bba109d324eccddb684eccb817553ba76102eb5b5819cab37f938b4ba74fdbda7c5386d00747b3024cd81
Diffstat (limited to 'src')
-rw-r--r--src/net.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index 7f9ec1a57b..00d04e9914 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;
}