[net processing] Move GetNodeStateStats into PeerManager

This commit is contained in:
John Newbery
2020-08-24 17:39:54 +01:00
parent 257cf05f9b
commit a529fd3e3f
4 changed files with 21 additions and 18 deletions

View File

@@ -887,7 +887,7 @@ void PeerManager::FinalizeNode(const CNode& node, bool& fUpdateConnectionTime) {
LogPrint(BCLog::NET, "Cleared nodestate for peer=%d\n", nodeid);
}
bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats) {
bool PeerManager::GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats) {
{
LOCK(cs_main);
CNodeState* state = State(nodeid);