mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
BasicConfig support for legacy values:
* A legacy value is a config section with a single-line. * These values may be read from the BasicConfig interface so the deprecated Config class does not need to be exposed to clients. * Made Config class more testable.
This commit is contained in:
@@ -700,7 +700,7 @@ setup_SHAMapStore (Config const& c)
|
||||
setup.ledgerHistory = c.LEDGER_HISTORY;
|
||||
setup.nodeDatabase = c.nodeDatabase;
|
||||
setup.ephemeralNodeDatabase = c.ephemeralNodeDatabase;
|
||||
setup.databasePath = c.DATABASE_PATH;
|
||||
setup.databasePath = c.legacy("database_path");
|
||||
if (c.nodeDatabase["delete_batch"].isNotEmpty())
|
||||
setup.deleteBatch = c.nodeDatabase["delete_batch"].getIntValue();
|
||||
if (c.nodeDatabase["backOff"].isNotEmpty())
|
||||
|
||||
Reference in New Issue
Block a user