mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Make --import work
This commit is contained in:
@@ -1225,7 +1225,7 @@ void ApplicationImp::updateTables ()
|
||||
exit (1);
|
||||
}
|
||||
|
||||
if (getConfig ().importNodeDatabase.size () > 0)
|
||||
if (getConfig ().doImport)
|
||||
{
|
||||
NodeStore::DummyScheduler scheduler;
|
||||
ScopedPointer <NodeStore::Database> source (NodeStore::Database::New (
|
||||
|
||||
@@ -407,9 +407,7 @@ int RippleMain::run (int argc, char const* const* argv)
|
||||
//
|
||||
if (vm.count ("import"))
|
||||
{
|
||||
String const optionString (vm ["import"].as <std::string> ());
|
||||
|
||||
getConfig ().importNodeDatabase = parseDelimitedKeyValueString (optionString);
|
||||
getConfig ().doImport = true;
|
||||
}
|
||||
|
||||
if (vm.count ("ledger"))
|
||||
|
||||
Reference in New Issue
Block a user