Allow a server to keep no ledger history, closes #299

This commit is contained in:
Nik Bougalis
2014-03-06 15:12:39 -08:00
parent 3a684ce280
commit 242494a9ad

View File

@@ -545,6 +545,8 @@ void Config::load ()
if (strTemp == "full")
LEDGER_HISTORY = 1000000000u;
else if (strTemp == "none")
LEDGER_HISTORY = 0;
else
LEDGER_HISTORY = lexicalCastThrow <uint32> (strTemp);
}