| 73 | static std::atomic<bool> g_silence = {false}; |
| 74 | |
| 75 | void help() |
| 76 | { |
| 77 | cout |
| 78 | << "Usage eth [OPTIONS]" << endl |
| 79 | << "Options:" << endl << endl |
| 80 | << "Wallet usage:" << endl; |
| 81 | AccountManager::streamAccountHelp(cout); |
| 82 | AccountManager::streamWalletHelp(cout); |
| 83 | cout |
| 84 | << endl; |
| 85 | cout |
| 86 | << "Client mode (default):" << endl |
| 87 | << " --mainnet Use the main network protocol." << endl |
| 88 | << " --ropsten Use the Ropsten testnet." << endl |
| 89 | << " --private <name> Use a private chain." << endl |
| 90 | << " --test Testing mode: Disable PoW and provide test rpc interface." << endl |
| 91 | << " --config <file> Configure specialised blockchain using given JSON information." << endl |
| 92 | << " --oppose-dao-fork Ignore DAO hard fork (default is to participate)." << endl |
| 93 | << endl |
| 94 | << " -o,--mode <full/peer> Start a full node or a peer node (default: full)." << endl |
| 95 | << endl |
| 96 | << " -j,--json-rpc Enable JSON-RPC server (default: off)." << endl |
| 97 | << " --ipc Enable IPC server (default: on)." << endl |
| 98 | << " --ipcpath Set .ipc socket path (default: data directory)" << endl |
| 99 | << " --admin-via-http Expose admin interface via http - UNSAFE! (default: off)." << endl |
| 100 | << " --no-ipc Disable IPC server." << endl |
| 101 | << " --json-rpc-port <n> Specify JSON-RPC server port (implies '-j', default: " << SensibleHttpPort << ")." << endl |
| 102 | << " --rpccorsdomain <domain> Domain on which to send Access-Control-Allow-Origin header." << endl |
| 103 | << " --admin <password> Specify admin session key for JSON-RPC (default: auto-generated and printed at start-up)." << endl |
| 104 | << " -K,--kill Kill the blockchain first." << endl |
| 105 | << " -R,--rebuild Rebuild the blockchain from the existing database." << endl |
| 106 | << " --rescue Attempt to rescue a corrupt database." << endl |
| 107 | << endl |
| 108 | << " --import-presale <file> Import a pre-sale key; you'll need to specify the password to this key." << endl |
| 109 | << " -s,--import-secret <secret> Import a secret key into the key store." << endl |
| 110 | << " --master <password> Give the master password for the key store. Use --master \"\" to show a prompt." << endl |
| 111 | << " --password <password> Give a password for a private key." << endl |
| 112 | << endl |
| 113 | << "Client transacting:" << endl |
| 114 | /*<< " -B,--block-fees <n> Set the block fee profit in the reference unit, e.g. ¢ (default: 15)." << endl |
| 115 | << " -e,--ether-price <n> Set the ether price in the reference unit, e.g. ¢ (default: 30.679)." << endl |
| 116 | << " -P,--priority <0 - 100> Set the default priority percentage (%) of a transaction (default: 50)." << endl*/ |
| 117 | << " --ask <wei> Set the minimum ask gas price under which no transaction will be mined (default " << toString(DefaultGasPrice) << " )." << endl |
| 118 | << " --bid <wei> Set the bid gas price to pay for transactions (default " << toString(DefaultGasPrice) << " )." << endl |
| 119 | << " --unsafe-transactions Allow all transactions to proceed without verification. EXTREMELY UNSAFE." |
| 120 | << endl |
| 121 | << "Client mining:" << endl |
| 122 | << " -a,--address <addr> Set the author (mining payout) address to given address (default: auto)." << endl |
| 123 | << " -m,--mining <on/off/number> Enable mining, optionally for a specified number of blocks (default: off)." << endl |
| 124 | << " -f,--force-mining Mine even when there are no transactions to mine (default: off)." << endl |
| 125 | << " -C,--cpu When mining, use the CPU." << endl |
| 126 | << " -t, --mining-threads <n> Limit number of CPU/GPU miners to n (default: use everything available on selected platform)." << endl |
| 127 | << endl |
| 128 | << "Client networking:" << endl |
| 129 | << " --client-name <name> Add a name to your client's version string (default: blank)." << endl |
| 130 | << " --bootstrap Connect to the default Ethereum peer servers (default unless --no-discovery used)." << endl |
| 131 | << " --no-bootstrap Do not connect to the default Ethereum peer servers (default only when --no-discovery is used)." << endl |
| 132 | << " -x,--peers <number> Attempt to connect to a given number of peers (default: 11)." << endl |