mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
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
This commit is contained in:
parent
67f43a99ae
commit
53a088154c
6 changed files with 7 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue