This commit is contained in:
Evan Duffield 2015-01-23 06:29:27 -07:00
commit 7e087dadb9
2 changed files with 4 additions and 4 deletions

View File

@ -2228,8 +2228,8 @@ void ThreadCheckDarkSendPool()
CleanTransactionLocksList();
}
//try to sync the masternode list and payment list every 20 seconds
if(c % 5 == 0 && RequestedMasterNodeList <= 2){
//try to sync the masternode list and payment list every 5 seconds from at least 3 nodes
if(c % 5 == 0 && (RequestedMasterNodeList <= 2 || vecMasternodes.size() == 0)){
bool fIsInitialDownload = IsInitialBlockDownload();
if(!fIsInitialDownload) {
LOCK(cs_vNodes);

View File

@ -273,7 +273,7 @@ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream
{
int64_t t = (*i).second;
if (GetTime() < t) {
Misbehaving(pfrom->GetId(), 100);
Misbehaving(pfrom->GetId(), 20);
LogPrintf("dseg - peer already asked me for the list\n");
return;
}
@ -284,7 +284,7 @@ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream
}
} //else, asking for a specific node which is ok
int count = vecMasternodes.size()-1;
int count = vecMasternodes.size();
int i = 0;
BOOST_FOREACH(CMasterNode mn, vecMasternodes) {