From 9a28bc0ffdd5393880898475b1ebc277409c2381 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Wed, 29 Jan 2020 13:57:58 -0800 Subject: [PATCH] Mark asmap const in statistics code --- src/net.cpp | 2 +- src/net.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net.cpp b/src/net.cpp index 501c9f15dda73..285adc795990b 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -628,7 +628,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 e1460b89ba961..2ed939e91a557 100644 --- a/src/net.h +++ b/src/net.h @@ -781,7 +781,7 @@ class CNode void CloseSocketDisconnect(); bool DisconnectOldProtocol(int nVersionIn, int nVersionRequired); - void copyStats(CNodeStats& stats, std::vector& m_asmap); + void copyStats(CNodeStats& stats, const std::vector& m_asmap); ServiceFlags GetLocalServices() const {