diff --git a/src/Ledger.cpp b/src/Ledger.cpp index f987045a71..642018da8e 100644 --- a/src/Ledger.cpp +++ b/src/Ledger.cpp @@ -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) {