|
|
@ -100,6 +100,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 |
|
|
|
<< " -f,--force-mining Mine even when there are no transaction to mine (Default: off)" << endl |
|
|
|
<< " -h,--help Show this help message and exit." << endl |
|
|
|
<< " -i,--interactive Enter interactive mode (default: non-interactive)." << endl |
|
|
|
#if ETH_JSONRPC |
|
|
@ -185,6 +186,7 @@ int main(int argc, char** argv) |
|
|
|
#endif |
|
|
|
string publicIP; |
|
|
|
bool upnp = true; |
|
|
|
bool forceMining = false; |
|
|
|
string clientName; |
|
|
|
|
|
|
|
// Init defaults
|
|
|
@ -256,6 +258,8 @@ int main(int argc, char** argv) |
|
|
|
return -1; |
|
|
|
} |
|
|
|
} |
|
|
|
else if (arg == "-f" || arg == "--force-mining") |
|
|
|
forceMining = true; |
|
|
|
else if (arg == "-i" || arg == "--interactive") |
|
|
|
interactive = true; |
|
|
|
#if ETH_JSONRPC |
|
|
@ -294,6 +298,8 @@ int main(int argc, char** argv) |
|
|
|
Client c("Ethereum(++)/" + clientName + "v" + eth::EthVersion + "/" ETH_QUOTED(ETH_BUILD_TYPE) "/" ETH_QUOTED(ETH_BUILD_PLATFORM), coinbase, dbPath); |
|
|
|
cout << credits(); |
|
|
|
|
|
|
|
c.setForceMining(forceMining); |
|
|
|
|
|
|
|
cout << "Address: " << endl << toHex(us.address().asArray()) << endl; |
|
|
|
c.startNetwork(listenPort, remoteHost, remotePort, mode, peers, publicIP, upnp); |
|
|
|
|
|
|
|