mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-05-17 23:56:39 +00:00
Mark asmap const in statistics code
This commit is contained in:
parent
d58bcdc4b5
commit
6f8c937312
@ -498,7 +498,7 @@ void CNode::SetAddrLocal(const CService& addrLocalIn) {
|
|||||||
|
|
||||||
#undef X
|
#undef X
|
||||||
#define X(name) stats.name = name
|
#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();
|
stats.nodeid = this->GetId();
|
||||||
X(nServices);
|
X(nServices);
|
||||||
|
@ -983,7 +983,7 @@ public:
|
|||||||
|
|
||||||
void CloseSocketDisconnect();
|
void CloseSocketDisconnect();
|
||||||
|
|
||||||
void copyStats(CNodeStats &stats, std::vector<bool> &m_asmap);
|
void copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap);
|
||||||
|
|
||||||
ServiceFlags GetLocalServices() const
|
ServiceFlags GetLocalServices() const
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user