mirror of
https://github.com/dashpay/dash.git
synced 2024-12-30 14:25:53 +01:00
darksend disabled
This commit is contained in:
parent
2748306d09
commit
ee303c89fb
13
src/init.cpp
13
src/init.cpp
@ -1168,11 +1168,16 @@ bool AppInit2(boost::thread_group& threadGroup)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
nDarksendRounds = GetArg("-darksendrounds", 2);
|
fDisableDarksend = GetBoolArg("-disabledarksend", false);
|
||||||
if(nDarksendRounds > 8) nDarksendRounds = 8;
|
if(!fDisableDarksend){
|
||||||
if(nDarksendRounds < 1) nDarksendRounds = 1;
|
nDarksendRounds = GetArg("-darksendrounds", 2);
|
||||||
|
if(nDarksendRounds > 8) nDarksendRounds = 8;
|
||||||
|
if(nDarksendRounds < 1) nDarksendRounds = 1;
|
||||||
|
|
||||||
printf("Darksend rounds %d\n", nDarksendRounds);
|
printf("Darksend rounds %d\n", nDarksendRounds);
|
||||||
|
} else {
|
||||||
|
printf("Darksend is disabled!\n");
|
||||||
|
}
|
||||||
|
|
||||||
darkSendDenominations.push_back( 1000 * COIN );
|
darkSendDenominations.push_back( 1000 * COIN );
|
||||||
darkSendDenominations.push_back( 100 * COIN );
|
darkSendDenominations.push_back( 100 * COIN );
|
||||||
|
@ -6954,6 +6954,8 @@ int CDarkSendPool::GetCurrentMasterNode(int mod, int64 nBlockHeight)
|
|||||||
|
|
||||||
void CDarkSendPool::DoAutomaticDenominating()
|
void CDarkSendPool::DoAutomaticDenominating()
|
||||||
{
|
{
|
||||||
|
if(fDisableDarksend) return;
|
||||||
|
|
||||||
// ** find the coins we'll use
|
// ** find the coins we'll use
|
||||||
std::vector<CTxIn> vCoins;
|
std::vector<CTxIn> vCoins;
|
||||||
int64 nValueMin = 0.01*COIN;
|
int64 nValueMin = 0.01*COIN;
|
||||||
|
@ -74,6 +74,7 @@ bool fMasterNode = false;
|
|||||||
string strMasterNodePrivKey = "";
|
string strMasterNodePrivKey = "";
|
||||||
string strMasterNodeAddr = "";
|
string strMasterNodeAddr = "";
|
||||||
int nDarksendRounds = 2;
|
int nDarksendRounds = 2;
|
||||||
|
bool fDisableDarksend = false;
|
||||||
bool fDebug = false;
|
bool fDebug = false;
|
||||||
bool fDebugNet = false;
|
bool fDebugNet = false;
|
||||||
bool fPrintToConsole = false;
|
bool fPrintToConsole = false;
|
||||||
|
@ -131,6 +131,7 @@ extern std::map<std::string, std::string> mapArgs;
|
|||||||
extern std::map<std::string, std::vector<std::string> > mapMultiArgs;
|
extern std::map<std::string, std::vector<std::string> > mapMultiArgs;
|
||||||
extern bool fMasterNode;
|
extern bool fMasterNode;
|
||||||
extern int nDarksendRounds;
|
extern int nDarksendRounds;
|
||||||
|
extern bool fDisableDarksend;
|
||||||
extern std::string strMasterNodeAddr;
|
extern std::string strMasterNodeAddr;
|
||||||
extern bool fDebug;
|
extern bool fDebug;
|
||||||
extern bool fDebugNet;
|
extern bool fDebugNet;
|
||||||
|
Loading…
Reference in New Issue
Block a user