mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Explain how we're going to fix getLedgerByHash
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user