Browse Source

Polish for DAG creation.

cl-refactor
Gav Wood 10 years ago
parent
commit
2e616734a2
  1. 6
      eth/main.cpp

6
eth/main.cpp

@ -113,7 +113,7 @@ void help()
<< " -c,--client-name <name> Add a name to your client's version string (default: blank)." << endl
<< " -d,--db-path <path> Load database from path (default: ~/.ethereum " << endl
<< " <APPDATA>/Etherum or Library/Application Support/Ethereum)." << endl
<< " -D,--initdag <this/next/number> Initialize DAG for mining on given block and exit." << endl
<< " -D,--create-dag <this/next/number> Create the DAG in preparation for mining on given block and exit." << endl
<< " -e,--ether-price <n> Set the ether price in the reference unit e.g. ¢ (Default: 30.679)." << endl
<< " -f,--force-mining Mine even when there are no transaction to mine (Default: off)" << endl
<< " -h,--help Show this help message and exit." << endl
@ -309,7 +309,7 @@ int main(int argc, char** argv)
structuredLogging = true;
else if ((arg == "-d" || arg == "--path" || arg == "--db-path") && i + 1 < argc)
dbPath = argv[++i];
else if ((arg == "-D" || arg == "--initdag") && i + 1 < argc)
else if ((arg == "-D" || arg == "--create-dag") && i + 1 < argc)
{
string m = boost::to_lower_copy(string(argv[++i]));
if (m == "next")
@ -466,7 +466,7 @@ int main(int argc, char** argv)
bi.number = (initDAG == LatestBlock || initDAG == PendingBlock) ?
web3.ethereum()->blockChain().number() + (initDAG == PendingBlock ? 30000 : 0) :
initDAG;
cout << "Initializing DAG for epoch beginning #" << (bi.number / 30000 * 30000) << " (seedhash " << bi.seedHash() << "). This will take a while." << endl;
cout << "Initializing DAG for epoch beginning #" << (bi.number / 30000 * 30000) << " (seedhash " << bi.seedHash().abridged() << "). This will take a while." << endl;
Ethasher::get()->full(bi);
return 0;
}

Loading…
Cancel
Save