Work on complete ledger history code.

This commit is contained in:
JoelKatz
2012-10-26 15:24:38 -07:00
parent 855ae419ac
commit 6d9ddde39c
4 changed files with 33 additions and 16 deletions

View File

@@ -50,7 +50,8 @@ Ledger::pointer LedgerHistory::getLedgerBySeq(uint32 index)
sl.unlock();
Ledger::pointer ret(Ledger::loadByIndex(index));
if (!ret) return ret;
if (!ret)
return ret;
assert(ret->getLedgerSeq() == index);
sl.lock();