Allow a ledger close to be replayed for debug. Syntax: rippled -a --load --ledger=<seq> --replay

This commit is contained in:
JoelKatz
2013-07-17 03:31:23 -07:00
parent 00b0663e50
commit 65d46752df
5 changed files with 48 additions and 8 deletions

View File

@@ -14,7 +14,8 @@ DatabaseCon::DatabaseCon (const std::string& strName, const char* initStrings[],
// responsibility to pass in the path. Add a member function to Application
// or Config to compute this path.
//
boost::filesystem::path pPath = (theConfig.RUN_STANDALONE && (theConfig.START_UP != Config::LOAD))
boost::filesystem::path pPath = (theConfig.RUN_STANDALONE &&
((theConfig.START_UP != Config::LOAD) && (theConfig.START_UP != Config::REPLAY)))
? "" // Use temporary files.
: (theConfig.DATA_DIR / strName); // Use regular db files.

View File

@@ -101,6 +101,7 @@ public:
FRESH,
NORMAL,
LOAD,
REPLAY,
NETWORK
};
StartUpType START_UP;