mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
process DS,IX,MN,DGBB on IsBlockchainSynced, not on IBD
This commit is contained in:
parent
f94d9803c6
commit
8063bcc8aa
@ -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
|
||||||
|
|
||||||
|
@ -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")
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user