Browse Source

Hermit mode for eth.

cl-refactor
Gav Wood 10 years ago
parent
commit
8c5fee7352
  1. 3
      eth/main.cpp

3
eth/main.cpp

@ -179,6 +179,7 @@ void help()
<< " --upnp <on/off> Use UPnP for NAT (default: on)." << endl << " --upnp <on/off> Use UPnP for NAT (default: on)." << endl
<< " --no-discovery Disable Node discovery." << endl << " --no-discovery Disable Node discovery." << endl
<< " --pin Only connect to required (trusted) peers." << endl << " --pin Only connect to required (trusted) peers." << endl
<< " --hermit Equivalent to --no-discovery --pin." << endl
// << " --require-peers <peers.json> List of required (trusted) peers. (experimental)" << endl // << " --require-peers <peers.json> List of required (trusted) peers. (experimental)" << endl
<< endl; << endl;
MinerCLI::streamHelp(cout); MinerCLI::streamHelp(cout);
@ -1431,6 +1432,8 @@ int main(int argc, char** argv)
disableDiscovery = true; disableDiscovery = true;
else if (arg == "--pin") else if (arg == "--pin")
pinning = true; pinning = true;
else if (arg == "--hermit")
pinning = disableDiscovery = true;
else if (arg == "-f" || arg == "--force-mining") else if (arg == "-f" || arg == "--force-mining")
forceMining = true; forceMining = true;
else if (arg == "--old-interactive") else if (arg == "--old-interactive")

Loading…
Cancel
Save