Skip to content

Commit

Permalink
Mark asmap const in statistics code
Browse files Browse the repository at this point in the history
  • Loading branch information
sipa authored and furszy committed Jul 28, 2021
1 parent 868a6ed commit 9a28bc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool>& m_asmap)
void CNode::copyStats(CNodeStats& stats, const std::vector<bool>& m_asmap)
{
stats.nodeid = this->GetId();
X(nServices);
Expand Down
2 changes: 1 addition & 1 deletion src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ class CNode
void CloseSocketDisconnect();
bool DisconnectOldProtocol(int nVersionIn, int nVersionRequired);

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

ServiceFlags GetLocalServices() const
{
Expand Down

0 comments on commit 9a28bc0

Please sign in to comment.