process DS,IX,MN,DGBB on IsBlockchainSynced, not on IBD

This commit is contained in:
UdjinM6 2015-08-07 07:48:55 +03:00
parent f94d9803c6
commit 8063bcc8aa
5 changed files with 6 additions and 5 deletions

View File

@ -44,7 +44,7 @@ CActiveMasternode activeMasternode;
void CDarksendPool::ProcessMessageDarksend(CNode* pfrom, std::string& strCommand, CDataStream& vRecv) void CDarksendPool::ProcessMessageDarksend(CNode* pfrom, std::string& strCommand, CDataStream& vRecv)
{ {
if(fLiteMode) return; //disable all Darksend/Masternode related functionality if(fLiteMode) return; //disable all Darksend/Masternode related functionality
if(IsInitialBlockDownload()) return; if(!masternodeSync.IsBlockchainSynced()) return;
if (strCommand == "dsa") { //Darksend Accept Into Pool if (strCommand == "dsa") { //Darksend Accept Into Pool

View File

@ -36,7 +36,7 @@ void ProcessMessageInstantX(CNode* pfrom, std::string& strCommand, CDataStream&
{ {
if(fLiteMode) return; //disable all darksend/masternode related functionality if(fLiteMode) return; //disable all darksend/masternode related functionality
if(!IsSporkActive(SPORK_2_INSTANTX)) return; if(!IsSporkActive(SPORK_2_INSTANTX)) return;
if(IsInitialBlockDownload()) return; if(!masternodeSync.IsBlockchainSynced()) return;
if (strCommand == "ix") if (strCommand == "ix")
{ {

View File

@ -857,7 +857,8 @@ void CBudgetManager::NewBlock()
void CBudgetManager::ProcessMessage(CNode* pfrom, std::string& strCommand, CDataStream& vRecv) void CBudgetManager::ProcessMessage(CNode* pfrom, std::string& strCommand, CDataStream& vRecv)
{ {
// lite mode is not supported // lite mode is not supported
if(IsInitialBlockDownload()) return; if(fLiteMode) return;
if(!masternodeSync.IsBlockchainSynced()) return;
LOCK(cs_budget); LOCK(cs_budget);

View File

@ -336,7 +336,7 @@ int CMasternodePayments::GetMinMasternodePaymentsProto() {
void CMasternodePayments::ProcessMessageMasternodePayments(CNode* pfrom, std::string& strCommand, CDataStream& vRecv) void CMasternodePayments::ProcessMessageMasternodePayments(CNode* pfrom, std::string& strCommand, CDataStream& vRecv)
{ {
if(IsInitialBlockDownload()) return; if(!masternodeSync.IsBlockchainSynced()) return;
if (strCommand == "mnget") { //Masternode Payments Request Sync if (strCommand == "mnget") { //Masternode Payments Request Sync
if(fLiteMode) return; //disable all Darksend/Masternode related functionality if(fLiteMode) return; //disable all Darksend/Masternode related functionality

View File

@ -632,7 +632,7 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData
{ {
if(fLiteMode) return; //disable all Darksend/Masternode related functionality if(fLiteMode) return; //disable all Darksend/Masternode related functionality
if(IsInitialBlockDownload()) return; if(!masternodeSync.IsBlockchainSynced()) return;
LOCK(cs_process_message); LOCK(cs_process_message);