Skip to content

Commit 9a28bc0

Browse files
sipafurszy
authored andcommitted
Mark asmap const in statistics code
1 parent 868a6ed commit 9a28bc0

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
@@ -628,7 +628,7 @@ void CNode::SetAddrLocal(const CService& addrLocalIn) {
628628

629629
#undef X
630630
#define X(name) stats.name = name
631-
void CNode::copyStats(CNodeStats& stats, std::vector<bool>& m_asmap)
631+
void CNode::copyStats(CNodeStats& stats, const std::vector<bool>& m_asmap)
632632
{
633633
stats.nodeid = this->GetId();
634634
X(nServices);

src/net.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ class CNode
781781
void CloseSocketDisconnect();
782782
bool DisconnectOldProtocol(int nVersionIn, int nVersionRequired);
783783

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

786786
ServiceFlags GetLocalServices() const
787787
{

0 commit comments

Comments
 (0)