Merge pull request #509 from UdjinM6/v0.12.0.x_fix_fDarkSendMaster
V0.12.0.x fix fDarkSendMaster
This commit is contained in:
commit
2d8843c4de
@ -397,8 +397,7 @@ CNode* ConnectNode(CAddress addrConnect, const char *pszDest, bool darkSendMaste
|
|||||||
CNode* pnode = FindNode((CService)addrConnect);
|
CNode* pnode = FindNode((CService)addrConnect);
|
||||||
if (pnode)
|
if (pnode)
|
||||||
{
|
{
|
||||||
if(darkSendMaster)
|
pnode->fDarkSendMaster = darkSendMaster;
|
||||||
pnode->fDarkSendMaster = true;
|
|
||||||
|
|
||||||
pnode->AddRef();
|
pnode->AddRef();
|
||||||
return pnode;
|
return pnode;
|
||||||
@ -2001,6 +2000,7 @@ CNode::CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn, bool fIn
|
|||||||
nPingUsecStart = 0;
|
nPingUsecStart = 0;
|
||||||
nPingUsecTime = 0;
|
nPingUsecTime = 0;
|
||||||
fPingQueued = false;
|
fPingQueued = false;
|
||||||
|
fDarkSendMaster = false;
|
||||||
|
|
||||||
{
|
{
|
||||||
LOCK(cs_nLastNodeId);
|
LOCK(cs_nLastNodeId);
|
||||||
|
Loading…
Reference in New Issue
Block a user