mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-17 17:45:52 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2678360715 | ||
|
|
54e504dd5a | ||
|
|
b632a6b2cf |
@@ -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"))
|
||||
|
||||
@@ -108,6 +108,7 @@ Config::Config ()
|
||||
|
||||
ELB_SUPPORT = false;
|
||||
RUN_STANDALONE = false;
|
||||
doImport = false;
|
||||
START_UP = NORMAL;
|
||||
}
|
||||
|
||||
|
||||
@@ -325,6 +325,7 @@ public:
|
||||
<key>'='<value>['|'<key>'='value]
|
||||
@see parseDelimitedKeyValueString
|
||||
*/
|
||||
bool doImport;
|
||||
StringPairArray importNodeDatabase;
|
||||
|
||||
//
|
||||
|
||||
@@ -125,6 +125,8 @@ public:
|
||||
if (! keyValues["file_size_mb"].isEmpty())
|
||||
{
|
||||
options.target_file_size_base = 1024 * 1024 * keyValues["file_size_mb"].getIntValue();
|
||||
options.max_bytes_for_level_base = 5 * options.target_file_size_base;
|
||||
options.write_buffer_size = 2 * options.target_file_size_base;
|
||||
}
|
||||
|
||||
if (! keyValues["file_size_mult"].isEmpty())
|
||||
|
||||
@@ -25,7 +25,7 @@ char const* BuildInfo::getRawVersionString ()
|
||||
//
|
||||
// The build version number (edit this for each release)
|
||||
//
|
||||
"0.18.0"
|
||||
"0.19.0"
|
||||
//
|
||||
// Must follow the format described here:
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user