Get rid of "full history". You can now configure how many back ledgers you want to retrieve

on startup. The default is 256. The configuration element is "ledger_history". Valid values are:
0/off/false/none = don't retrieve any history
on/full/yes/-1 = retrieve all history back to the genesis ledger
<number> = retrieve that number of past ledgers
This commit is contained in:
JoelKatz
2012-11-29 11:33:33 -08:00
parent 87ee255251
commit 6d858ab178
4 changed files with 38 additions and 16 deletions

View File

@@ -134,13 +134,6 @@ void Application::run()
else
startNewLedger();
if (theConfig.FULL_HISTORY && (theConfig.START_UP != Config::LOAD))
{
Ledger::pointer ledger = Ledger::getLastFullLedger();
if (ledger)
mLedgerMaster.setLedgerRangePresent(0, ledger->getLedgerSeq());
}
//
// Begin validation and ip maintenance.
// - Wallet maintains local information: including identity and network connection persistence information.