Don't declare de facto const member functions as non-const

This commit is contained in:
practicalswift
2020-12-06 15:51:22 +00:00
parent 64156ad4d1
commit 1c65c075ee
13 changed files with 20 additions and 20 deletions

View File

@@ -1216,7 +1216,7 @@ void CConnman::NotifyNumConnectionsChanged()
}
}
void CConnman::InactivityCheck(CNode *pnode)
void CConnman::InactivityCheck(CNode *pnode) const
{
int64_t nTime = GetSystemTimeInSeconds();
if (nTime - pnode->nTimeConnected > m_peer_connect_timeout)