Skip to content

Commit 6f8c937

Browse files
committed
Mark asmap const in statistics code
1 parent d58bcdc commit 6f8c937

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ void CNode::SetAddrLocal(const CService& addrLocalIn) {
498498

499499
#undef X
500500
#define X(name) stats.name = name
501-
void CNode::copyStats(CNodeStats &stats, std::vector<bool> &m_asmap)
501+
void CNode::copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap)
502502
{
503503
stats.nodeid = this->GetId();
504504
X(nServices);

src/net.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ class CNode
983983

984984
void CloseSocketDisconnect();
985985

986-
void copyStats(CNodeStats &stats, std::vector<bool> &m_asmap);
986+
void copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap);
987987

988988
ServiceFlags GetLocalServices() const
989989
{

0 commit comments

Comments
 (0)