This commit is contained in:
JoelKatz
2012-05-27 15:54:06 -07:00
parent 9ef47a2678
commit 3fcdf31096

View File

@@ -127,7 +127,7 @@ AccountState::pointer Ledger::getAccountState(const NewcoinAddress& accountID)
#ifdef DEBUG
// std::cerr << "Ledger:getAccountState(" << accountID.humanAccountID() << ")" << std::endl;
#endif
ScopedLock l(mTransactionMap->Lock());
ScopedLock l(mAccountStateMap->Lock());
SHAMapItem::pointer item = mAccountStateMap->peekItem(Ledger::getAccountRootIndex(accountID));
if (!item)
{