aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-05-06 16:34:31 +0200
committerWladimir J. van der Laan <[email protected]>2014-05-06 16:36:55 +0200
commitacc2d2ca5f7dadcf9807ed1bfcac6c010fe3649d (patch)
tree0a60cf794c0f9568b9ced1797c137b2878819c51 /src/net.cpp
parentqt: periodic translations update (diff)
parentrpc: add `getblockchaininfo` and `getnetworkinfo` (diff)
downloaddiscoin-acc2d2ca5f7dadcf9807ed1bfcac6c010fe3649d.tar.xz
discoin-acc2d2ca5f7dadcf9807ed1bfcac6c010fe3649d.zip
Merge pull request #4127
d387b8e rpc: add `getblockchaininfo` and `getnetworkinfo` (Wladimir J. van der Laan)
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 6369dd292..6bde1e799 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -44,18 +44,13 @@ static const int MAX_OUTBOUND_CONNECTIONS = 8;
bool OpenNetworkConnection(const CAddress& addrConnect, CSemaphoreGrant *grantOutbound = NULL, const char *strDest = NULL, bool fOneShot = false);
-struct LocalServiceInfo {
- int nScore;
- int nPort;
-};
-
//
// Global state variables
//
bool fDiscover = true;
uint64_t nLocalServices = NODE_NETWORK;
-static CCriticalSection cs_mapLocalHost;
-static map<CNetAddr, LocalServiceInfo> mapLocalHost;
+CCriticalSection cs_mapLocalHost;
+map<CNetAddr, LocalServiceInfo> mapLocalHost;
static bool vfReachable[NET_MAX] = {};
static bool vfLimited[NET_MAX] = {};
static CNode* pnodeLocalHost = NULL;