mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Standalone mode uses temp DB files by default (RIPD-1129):
* If a [database_path] is configured, it will always be used, and tables will be upgraded on startup.
This commit is contained in:
@@ -1433,7 +1433,7 @@ void LedgerConsensusImp::takeInitialPosition (
|
||||
SHAMapItem (tx.first->getTransactionID(), std::move (s)), true, false);
|
||||
}
|
||||
|
||||
if ((app_.config().RUN_STANDALONE || (mProposing && mHaveCorrectLCL))
|
||||
if ((app_.config().standalone() || (mProposing && mHaveCorrectLCL))
|
||||
&& ((mPreviousLedger->info().seq % 256) == 0))
|
||||
{
|
||||
// previous ledger was flag ledger, add pseudo-transactions
|
||||
|
||||
@@ -86,7 +86,7 @@ LedgerMaster::LedgerMaster (Application& app, Stopwatch& stopwatch,
|
||||
, mValidLedgerSign (0)
|
||||
, mValidLedgerSeq (0)
|
||||
, mBuildingLedgerSeq (0)
|
||||
, standalone_ (app_.config().RUN_STANDALONE)
|
||||
, standalone_ (app_.config().standalone())
|
||||
, fetch_depth_ (app_.getSHAMapStore ().clampFetchDepth (
|
||||
app_.config().FETCH_DEPTH))
|
||||
, ledger_history_ (app_.config().LEDGER_HISTORY)
|
||||
@@ -209,7 +209,7 @@ LedgerMaster::setValidLedger(
|
||||
{
|
||||
std::vector <NetClock::time_point> times;
|
||||
|
||||
if (! app_.config().RUN_STANDALONE)
|
||||
if (! standalone_)
|
||||
{
|
||||
times = app_.getValidations().getValidationTimes(
|
||||
l->info().hash);
|
||||
|
||||
Reference in New Issue
Block a user