Darksend rounds default/litemode changes

4 rounds should be more than enough
This commit is contained in:
Evan Duffield 2015-01-26 15:54:12 -07:00
parent 71e074336b
commit 69ca88c491
2 changed files with 7 additions and 2 deletions

View File

@ -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;

View File

@ -151,7 +151,7 @@
<number>16</number>
</property>
<property name="value">
<number>8</number>
<number>4</number>
</property>
</widget>
</item>