mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +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)
|
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 (strCommand == "dsee") { //DarkSend Election Entry
|
||||||
|
if(fLiteMode) return; //disable all darksend/masternode related functionality
|
||||||
|
|
||||||
bool fIsInitialDownload = IsInitialBlockDownload();
|
bool fIsInitialDownload = IsInitialBlockDownload();
|
||||||
if(fIsInitialDownload) return;
|
if(fIsInitialDownload) return;
|
||||||
|
|
||||||
@ -190,6 +191,7 @@ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream
|
|||||||
}
|
}
|
||||||
|
|
||||||
else if (strCommand == "dseep") { //DarkSend Election Entry Ping
|
else if (strCommand == "dseep") { //DarkSend Election Entry Ping
|
||||||
|
if(fLiteMode) return; //disable all darksend/masternode related functionality
|
||||||
bool fIsInitialDownload = IsInitialBlockDownload();
|
bool fIsInitialDownload = IsInitialBlockDownload();
|
||||||
if(fIsInitialDownload) return;
|
if(fIsInitialDownload) return;
|
||||||
|
|
||||||
@ -261,6 +263,7 @@ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream
|
|||||||
askedForMasternodeListEntry[vin.prevout] = askAgain;
|
askedForMasternodeListEntry[vin.prevout] = askAgain;
|
||||||
|
|
||||||
} else if (strCommand == "dseg") { //Get masternode list or specific entry
|
} else if (strCommand == "dseg") { //Get masternode list or specific entry
|
||||||
|
if(fLiteMode) return; //disable all darksend/masternode related functionality
|
||||||
CTxIn vin;
|
CTxIn vin;
|
||||||
vRecv >> vin;
|
vRecv >> vin;
|
||||||
|
|
||||||
@ -310,6 +313,7 @@ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream
|
|||||||
}
|
}
|
||||||
|
|
||||||
else if (strCommand == "mnget") { //Masternode Payments Request Sync
|
else if (strCommand == "mnget") { //Masternode Payments Request Sync
|
||||||
|
if(fLiteMode) return; //disable all darksend/masternode related functionality
|
||||||
|
|
||||||
if(pfrom->HasFulfilledRequest("mnget")) {
|
if(pfrom->HasFulfilledRequest("mnget")) {
|
||||||
LogPrintf("mnget - peer already asked me for the list\n");
|
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());
|
LogPrintf("mnget - Sent masternode winners to %s\n", pfrom->addr.ToString().c_str());
|
||||||
}
|
}
|
||||||
else if (strCommand == "mnw") { //Masternode Payments Declare Winner
|
else if (strCommand == "mnw") { //Masternode Payments Declare Winner
|
||||||
|
//this is required in litemode
|
||||||
CMasternodePaymentWinner winner;
|
CMasternodePaymentWinner winner;
|
||||||
vRecv >> winner;
|
vRecv >> winner;
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@
|
|||||||
<number>16</number>
|
<number>16</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="value">
|
<property name="value">
|
||||||
<number>8</number>
|
<number>4</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user