diff --git a/src/masternode.cpp b/src/masternode.cpp index 9706e77cd4..f78dd6269f 100644 --- a/src/masternode.cpp +++ b/src/masternode.cpp @@ -37,9 +37,10 @@ void ProcessMasternodeConnections(){ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream& vRecv) { - if(fLiteMode) return; //disable all darksend/masternode related functionality if (strCommand == "dsee") { //DarkSend Election Entry + if(fLiteMode) return; //disable all darksend/masternode related functionality + bool fIsInitialDownload = IsInitialBlockDownload(); if(fIsInitialDownload) return; @@ -190,6 +191,7 @@ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream } else if (strCommand == "dseep") { //DarkSend Election Entry Ping + if(fLiteMode) return; //disable all darksend/masternode related functionality bool fIsInitialDownload = IsInitialBlockDownload(); if(fIsInitialDownload) return; @@ -261,6 +263,7 @@ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream askedForMasternodeListEntry[vin.prevout] = askAgain; } else if (strCommand == "dseg") { //Get masternode list or specific entry + if(fLiteMode) return; //disable all darksend/masternode related functionality CTxIn vin; vRecv >> vin; @@ -310,6 +313,7 @@ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream } else if (strCommand == "mnget") { //Masternode Payments Request Sync + if(fLiteMode) return; //disable all darksend/masternode related functionality if(pfrom->HasFulfilledRequest("mnget")) { LogPrintf("mnget - peer already asked me for the list\n"); @@ -322,6 +326,7 @@ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream LogPrintf("mnget - Sent masternode winners to %s\n", pfrom->addr.ToString().c_str()); } else if (strCommand == "mnw") { //Masternode Payments Declare Winner + //this is required in litemode CMasternodePaymentWinner winner; vRecv >> winner; diff --git a/src/qt/forms/optionsdialog.ui b/src/qt/forms/optionsdialog.ui index 5aeeea5ec6..d0c9e7e1c7 100644 --- a/src/qt/forms/optionsdialog.ui +++ b/src/qt/forms/optionsdialog.ui @@ -151,7 +151,7 @@ 16 - 8 + 4