Helper function.

This commit is contained in:
JoelKatz
2013-01-01 18:18:27 -08:00
parent 4d6f04ed2f
commit d27b395c1c

View File

@@ -15,6 +15,7 @@ public:
void addLedger(Ledger::pointer ledger); void addLedger(Ledger::pointer ledger);
void addAcceptedLedger(Ledger::pointer ledger, bool fromConsensus); void addAcceptedLedger(Ledger::pointer ledger, bool fromConsensus);
uint256 getLedgerHash(uint32 index);
Ledger::pointer getLedgerBySeq(uint32 index); Ledger::pointer getLedgerBySeq(uint32 index);
Ledger::pointer getLedgerByHash(const uint256& hash); Ledger::pointer getLedgerByHash(const uint256& hash);
Ledger::pointer canonicalizeLedger(Ledger::pointer, bool cache); Ledger::pointer canonicalizeLedger(Ledger::pointer, bool cache);