mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
first
This commit is contained in:
21
LedgerHistory.h
Normal file
21
LedgerHistory.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user