diff --git a/src/darksend.cpp b/src/darksend.cpp index 264e740492..c26b0d2c08 100644 --- a/src/darksend.cpp +++ b/src/darksend.cpp @@ -44,7 +44,7 @@ CActiveMasternode activeMasternode; void CDarksendPool::ProcessMessageDarksend(CNode* pfrom, std::string& strCommand, CDataStream& vRecv) { if(fLiteMode) return; //disable all Darksend/Masternode related functionality - if(IsInitialBlockDownload()) return; + if(!masternodeSync.IsBlockchainSynced()) return; if (strCommand == "dsa") { //Darksend Accept Into Pool diff --git a/src/instantx.cpp b/src/instantx.cpp index 1f08fd07d9..8c4323bd44 100644 --- a/src/instantx.cpp +++ b/src/instantx.cpp @@ -36,7 +36,7 @@ void ProcessMessageInstantX(CNode* pfrom, std::string& strCommand, CDataStream& { if(fLiteMode) return; //disable all darksend/masternode related functionality if(!IsSporkActive(SPORK_2_INSTANTX)) return; - if(IsInitialBlockDownload()) return; + if(!masternodeSync.IsBlockchainSynced()) return; if (strCommand == "ix") { diff --git a/src/masternode-budget.cpp b/src/masternode-budget.cpp index 86d0171a50..44a945629e 100644 --- a/src/masternode-budget.cpp +++ b/src/masternode-budget.cpp @@ -857,7 +857,8 @@ void CBudgetManager::NewBlock() void CBudgetManager::ProcessMessage(CNode* pfrom, std::string& strCommand, CDataStream& vRecv) { // lite mode is not supported - if(IsInitialBlockDownload()) return; + if(fLiteMode) return; + if(!masternodeSync.IsBlockchainSynced()) return; LOCK(cs_budget); diff --git a/src/masternode-payments.cpp b/src/masternode-payments.cpp index 89c614d7d5..e54f530543 100644 --- a/src/masternode-payments.cpp +++ b/src/masternode-payments.cpp @@ -336,7 +336,7 @@ int CMasternodePayments::GetMinMasternodePaymentsProto() { 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(fLiteMode) return; //disable all Darksend/Masternode related functionality diff --git a/src/masternodeman.cpp b/src/masternodeman.cpp index e62bfb5bf3..f633f19ac1 100644 --- a/src/masternodeman.cpp +++ b/src/masternodeman.cpp @@ -632,7 +632,7 @@ void CMasternodeMan::ProcessMessage(CNode* pfrom, std::string& strCommand, CData { if(fLiteMode) return; //disable all Darksend/Masternode related functionality - if(IsInitialBlockDownload()) return; + if(!masternodeSync.IsBlockchainSynced()) return; LOCK(cs_process_message);