mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 21:42:47 +01:00
Merge pull request #506 from UdjinM6/v0.12.0.x_ds_connections
V0.12.0.x clear DS connections to masternodes properly
This commit is contained in:
commit
c2171a7164
@ -634,11 +634,10 @@ void CMasternodeMan::ProcessMasternodeConnections()
|
|||||||
//we don't care about this for regtest
|
//we don't care about this for regtest
|
||||||
if(Params().NetworkID() == CBaseChainParams::REGTEST) return;
|
if(Params().NetworkID() == CBaseChainParams::REGTEST) return;
|
||||||
|
|
||||||
if(!darkSendPool.pSubmittedToMasternode) return;
|
LOCK(cs_vNodes);
|
||||||
|
BOOST_FOREACH(CNode* pnode, vNodes) {
|
||||||
CNode* pnode = FindNode(darkSendPool.pSubmittedToMasternode->addr);
|
|
||||||
if(pnode != NULL) {
|
|
||||||
if(pnode->fDarkSendMaster){
|
if(pnode->fDarkSendMaster){
|
||||||
|
if(darkSendPool.pSubmittedToMasternode != NULL && pnode->addr == darkSendPool.pSubmittedToMasternode->addr) continue;
|
||||||
LogPrintf("Closing Masternode connection %s \n", pnode->addr.ToString());
|
LogPrintf("Closing Masternode connection %s \n", pnode->addr.ToString());
|
||||||
pnode->fDisconnect = true;
|
pnode->fDisconnect = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user