mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-08 11:16:51 +00:00
21 lines
340 B
C++
21 lines
340 B
C++
#ifndef __LEDGERHISTORY__
|
|
#define __LEDGERHISTORY__
|
|
|
|
#include "Ledger.h"
|
|
|
|
/*
|
|
This is all the history that you know of.
|
|
*/
|
|
class LedgerHistory
|
|
{
|
|
std::map<uint64, Ledger::pointer> mLedgers;
|
|
bool loadLedger(uint64 index);
|
|
public:
|
|
void load();
|
|
|
|
void addLedger(Ledger::pointer ledger);
|
|
|
|
Ledger::pointer getLedger(uint64 index);
|
|
};
|
|
|
|
#endif |