mirror of
https://github.com/jwinterm/myriadcoin.git
synced 2026-10-19 05:58:38 +02:00
0.9.2
This commit is contained in:
@@ -301,6 +301,7 @@ std::string HelpMessage(HelpMessageMode hmm)
|
||||
strUsage += " -blockminsize=<n> " + _("Set minimum block size in bytes (default: 0)") + "\n";
|
||||
strUsage += " -blockmaxsize=<n> " + strprintf(_("Set maximum block size in bytes (default: %d)"), DEFAULT_BLOCK_MAX_SIZE) + "\n";
|
||||
strUsage += " -blockprioritysize=<n> " + strprintf(_("Set maximum size of high-priority/low-fee transactions in bytes (default: %d)"), DEFAULT_BLOCK_PRIORITY_SIZE) + "\n";
|
||||
strUsage += " -algo=<algo> " + _("Mining algorithm: sha256d, scrypt, groestl, skein, qubit") + "\n";
|
||||
|
||||
strUsage += "\n" + _("RPC server options:") + "\n";
|
||||
strUsage += " -server " + _("Accept command line and JSON-RPC commands") + "\n";
|
||||
@@ -493,6 +494,22 @@ bool AppInit2(boost::thread_group& threadGroup)
|
||||
LogPrintf("AppInit2 : parameter interaction: -zapwallettxes=1 -> setting -rescan=1\n");
|
||||
}
|
||||
|
||||
// Algo
|
||||
std::string strAlgo = GetArg("-algo", "sha256d");
|
||||
transform(strAlgo.begin(),strAlgo.end(),strAlgo.begin(),::tolower);
|
||||
if (strAlgo == "sha" || strAlgo == "sha256" || strAlgo == "sha256d")
|
||||
miningAlgo = ALGO_SHA256D;
|
||||
else if (strAlgo == "scrypt")
|
||||
miningAlgo = ALGO_SCRYPT;
|
||||
else if (strAlgo == "groestl" || strAlgo == "groestlsha2")
|
||||
miningAlgo = ALGO_GROESTL;
|
||||
else if (strAlgo == "skein" || strAlgo == "skeinsha2")
|
||||
miningAlgo = ALGO_SKEIN;
|
||||
else if (strAlgo == "q2c" || strAlgo == "qubit")
|
||||
miningAlgo = ALGO_QUBIT;
|
||||
else
|
||||
miningAlgo = ALGO_SHA256D;
|
||||
|
||||
// Make sure enough file descriptors are available
|
||||
int nBind = std::max((int)mapArgs.count("-bind"), 1);
|
||||
nMaxConnections = GetArg("-maxconnections", 125);
|
||||
|
||||
Reference in New Issue
Block a user