aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2020-01-29 13:57:58 -0800
committerPieter Wuille <[email protected]>2020-01-31 14:51:37 -0800
commit6f8c93731203c111f86c39eaf2102f9a825d1706 (patch)
treeb38ea9134449d20414f492871a88eb8d2729d2a1 /src
parentAvoid asmap copies in initialization (diff)
downloaddiscoin-6f8c93731203c111f86c39eaf2102f9a825d1706.tar.xz
discoin-6f8c93731203c111f86c39eaf2102f9a825d1706.zip
Mark asmap const in statistics code
Diffstat (limited to 'src')
-rw-r--r--src/net.cpp2
-rw-r--r--src/net.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 9cd2d30d9..18fe95e67 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -498,7 +498,7 @@ void CNode::SetAddrLocal(const CService& addrLocalIn) {
#undef X
#define X(name) stats.name = name
-void CNode::copyStats(CNodeStats &stats, std::vector<bool> &m_asmap)
+void CNode::copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap)
{
stats.nodeid = this->GetId();
X(nServices);
diff --git a/src/net.h b/src/net.h
index 92f7799e9..819947658 100644
--- a/src/net.h
+++ b/src/net.h
@@ -983,7 +983,7 @@ public:
void CloseSocketDisconnect();
- void copyStats(CNodeStats &stats, std::vector<bool> &m_asmap);
+ void copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap);
ServiceFlags GetLocalServices() const
{