bug with masternodes

This commit is contained in:
Evan 2014-04-05 13:01:06 -07:00
parent 9ee92ac951
commit f0a0c7aeef
2 changed files with 4 additions and 5 deletions

View File

@ -5924,13 +5924,13 @@ void CDarkSendPool::RegisterAsMasterNode()
if(GetMasterNodeVin(vinMasterNode)) {
printf("Is capable master node!\n");
isCapableMasterNode = true;
printf("Adding myself to masternode list %s\n", vinMasterNode.ToString().c_str());
CMasterNode mn(addr, vinMasterNode);
mn.UpdateLastSeen();
darkSendMasterNodes.push_back(mn);
}
}
printf("Adding myself to masternode list %s\n", vinMasterNode.ToString().c_str());
CMasterNode mn(addr, vinMasterNode);
mn.UpdateLastSeen();
darkSendMasterNodes.push_back(mn);
}
if(!isCapableMasterNode) return;

View File

@ -450,7 +450,6 @@ CNode* FindNode(const CService& addr)
{
LOCK(cs_vNodes);
BOOST_FOREACH(CNode* pnode, vNodes){
printf(" -- FindNode %s == %s\n", (CService)pnode->addr.ToString().c_str(), addr.ToString().c_str());
if ((CService)pnode->addr == addr)
return (pnode);
}