Cleanups and small improvements.

This commit is contained in:
JoelKatz
2012-10-27 19:29:29 -07:00
parent 00b7893c9c
commit e32ca702b4
5 changed files with 45 additions and 35 deletions

View File

@@ -1,10 +1,11 @@
#include "LedgerHistory.h"
#include <string>
#include <boost/bind.hpp>
#include <boost/thread.hpp>
#include "LedgerHistory.h"
#include "Config.h"
#include "Application.h"
@@ -13,13 +14,13 @@
#endif
#ifndef CACHED_LEDGER_AGE
#define CACHED_LEDGER_AGE 600
#define CACHED_LEDGER_AGE 900
#endif
// FIXME: Need to clean up ledgers by index, probably should switch to just mapping sequence to hash
LedgerHistory::LedgerHistory() : mLedgersByHash(CACHED_LEDGER_NUM, CACHED_LEDGER_AGE)
{
;
}
{ ; }
void LedgerHistory::addLedger(Ledger::pointer ledger)
{