diff --git a/src/net.cpp b/src/net.cpp index 9cd2d30d9dd..18fe95e6755 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 &m_asmap) +void CNode::copyStats(CNodeStats &stats, const std::vector &m_asmap) { stats.nodeid = this->GetId(); X(nServices); diff --git a/src/net.h b/src/net.h index 92f7799e977..819947658a6 100644 --- a/src/net.h +++ b/src/net.h @@ -983,7 +983,7 @@ public: void CloseSocketDisconnect(); - void copyStats(CNodeStats &stats, std::vector &m_asmap); + void copyStats(CNodeStats &stats, const std::vector &m_asmap); ServiceFlags GetLocalServices() const {