From ef87efb96d0fb1ba46f7d85c4e2f2d69b4fdf942 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sun, 24 Jun 2012 14:34:19 -0700 Subject: [PATCH] Explain how we're going to fix getLedgerByHash --- src/LedgerHistory.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/LedgerHistory.cpp b/src/LedgerHistory.cpp index 2d260c0ee0..8f9b1bec9e 100644 --- a/src/LedgerHistory.cpp +++ b/src/LedgerHistory.cpp @@ -63,6 +63,11 @@ Ledger::pointer LedgerHistory::getLedgerByHash(const uint256& hash) #if 0 // FIXME: A ledger without SHA maps isn't very useful // This code will need to build them + + // The fix is to audit all callers to this function and replace them with + // higher-level functions that ask more-specific questions that we can + // test against our database + ret = Ledger::loadByHash(hash); if (!ret) return ret; assert(ret->getHash() == hash);