Skip to content

Commit

Permalink
BUGFIX getpeerinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
fflo committed Aug 8, 2016
1 parent 3d8ea3e commit 7c6cf83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bitcoinrpc.cpp
Expand Up @@ -564,15 +564,15 @@ Value getconnectioncount(const Array& params, bool fHelp)
"getconnectioncount\n"
"Returns the number of connections to other nodes.");

LOCK(cs_vNodes);
CRITICAL_BLOCK(cs_vNodes);
return (int)vNodes.size();
}

static void CopyNodeStats(std::vector<CNodeStats>& vstats)
{
vstats.clear();

LOCK(cs_vNodes);
CRITICAL_BLOCK(cs_vNodes);
vstats.reserve(vNodes.size());
BOOST_FOREACH(CNode* pnode, vNodes) {
CNodeStats stats;
Expand Down

0 comments on commit 7c6cf83

Please sign in to comment.