Mark asmap const in statistics code

This commit is contained in:
Pieter Wuille committed 2020-01-31 14:51:37 -08:00
1 parent d58bcdc4b5
commit 6f8c937312
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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<bool> &m_asmap)
void CNode::copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap)
{
stats.nodeid = this->GetId();
X(nServices);
+1 -1
View File
@@ -983,7 +983,7 @@ public:
void CloseSocketDisconnect();
void copyStats(CNodeStats &stats, std::vector<bool> &m_asmap);
void copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap);
ServiceFlags GetLocalServices() const
{