aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2014-05-29 12:33:17 +0200
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2014-05-29 14:01:39 +0200
commit53a088154ce4e1fc483afa120a9063811dd0e7ea (patch)
tree56748b1748b2bb766c00f7b3f68daf50620bc806 /src/net.cpp
parent67f43a99ae59e24a7f147a27f1d008b8c4e5fc69 (diff)
downloadbitcoin-53a088154ce4e1fc483afa120a9063811dd0e7ea.tar.xz
rename fNoListen to fListen and move to net
- better code readability and it belongs to net - this is a prerequisite for a pull to add -listen to the GUI
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index c2dde97040..ef6674011b 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -45,6 +45,7 @@ static const int MAX_OUTBOUND_CONNECTIONS = 8;
// Global state variables
//
bool fDiscover = true;
+bool fListen = true;
uint64_t nLocalServices = NODE_NETWORK;
CCriticalSection cs_mapLocalHost;
map<CNetAddr, LocalServiceInfo> mapLocalHost;
@@ -96,7 +97,7 @@ unsigned short GetListenPort()
// find 'best' local address for a particular peer
bool GetLocal(CService& addr, const CNetAddr *paddrPeer)
{
- if (fNoListen)
+ if (!fListen)
return false;
int nBestScore = -1;