'--net' startup option to require the node to get its ledger from the network.

Once we have a stable network, this will likely be the default.
This commit is contained in:
JoelKatz
2012-10-10 01:40:02 -07:00
parent 850fee99e7
commit 1448eb1a5c
5 changed files with 23 additions and 13 deletions

View File

@@ -98,8 +98,9 @@ int main(int argc, char* argv[])
("test,t", "Perform unit tests.")
("parameters", po::value< vector<string> >(), "Specify comma separated parameters.")
("verbose,v", "Increase log level.")
("load","Load the current ledger from the local DB.")
("start","Start from a fresh Ledger.")
("load", "Load the current ledger from the local DB.")
("start", "Start from a fresh Ledger.")
("net", "Get the initial ledger from the network.")
;
// Interpret positional arguments as --parameters.
@@ -156,8 +157,9 @@ int main(int argc, char* argv[])
}
}
if(vm.count("start")) theConfig.START_UP=Config::FRESH;
else if(vm.count("load")) theConfig.START_UP=Config::LOAD;
if (vm.count("start")) theConfig.START_UP = Config::FRESH;
else if (vm.count("load")) theConfig.START_UP = Config::LOAD;
else if (vm.count("net")) theConfig.START_UP = Config::NETWORK;
if (iResult)
{