mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Darksend rounds default/litemode changes
4 rounds should be more than enough
This commit is contained in:
parent
71e074336b
commit
69ca88c491
@ -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;
|
||||
|
||||
|
@ -151,7 +151,7 @@
|
||||
<number>16</number>
|
||||
</property>
|
||||
<property name="value">
|
||||
<number>8</number>
|
||||
<number>4</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
Reference in New Issue
Block a user