From 2e616734a23f39519e997af2f2d04d5113593694 Mon Sep 17 00:00:00 2001 From: Gav Wood <i@gavwood.com> Date: Wed, 8 Apr 2015 13:18:11 +0200 Subject: [PATCH] Polish for DAG creation. --- eth/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eth/main.cpp b/eth/main.cpp index e5501d37c..0b287471d 100644 --- a/eth/main.cpp +++ b/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; }