mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
'--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:
10
src/main.cpp
10
src/main.cpp
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user