aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2020-12-06 15:51:22 +0000
committerpracticalswift <practicalswift@users.noreply.github.com>2020-12-06 18:44:25 +0000
commit1c65c075ee4c7f98d9c1fac5ed7576b96374d4e9 (patch)
tree6bbc3ecd15d74450843b7049414b0c1950182c4b /src/net.cpp
parent64156ad4d1f50daf35250dc3b329a8a595594d87 (diff)
Don't declare de facto const member functions as non-const
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 9c6d7b6375..8ddbcf5d33 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -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)