Optimize the startup code so we don't have long periods of slowness on startup.

This commit is contained in:
JoelKatz
2013-01-10 08:41:32 -08:00
parent d17a08c357
commit e2bac0e7cd
3 changed files with 64 additions and 9 deletions

View File

@@ -178,9 +178,11 @@ public:
SLE::pointer getAccountRoot(const RippleAddress& naAccountID);
void updateSkipList();
// database functions
// database functions (low-level)
static Ledger::pointer loadByIndex(uint32 ledgerIndex);
static Ledger::pointer loadByHash(const uint256& ledgerHash);
static uint256 getHashByIndex(uint32 index);
static bool getHashesByIndex(uint32 index, uint256& ledgerHash, uint256& parentHash);
void pendSave(bool fromConsensus);
// next/prev function