Merge pull request #509 from UdjinM6/v0.12.0.x_fix_fDarkSendMaster

V0.12.0.x fix fDarkSendMaster
This commit is contained in:
evan82 2015-08-11 09:23:54 -07:00
commit 2d8843c4de

View File

@ -397,8 +397,7 @@ CNode* ConnectNode(CAddress addrConnect, const char *pszDest, bool darkSendMaste
CNode* pnode = FindNode((CService)addrConnect);
if (pnode)
{
if(darkSendMaster)
pnode->fDarkSendMaster = true;
pnode->fDarkSendMaster = darkSendMaster;
pnode->AddRef();
return pnode;
@ -2001,6 +2000,7 @@ CNode::CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn, bool fIn
nPingUsecStart = 0;
nPingUsecTime = 0;
fPingQueued = false;
fDarkSendMaster = false;
{
LOCK(cs_nLastNodeId);