Make getAccountState use getSLEi.

Make getSLEi work against a mutex ledger without holding a master lock.
This commit is contained in:
JoelKatz
2013-02-21 06:47:38 -08:00
parent 73c795a4b2
commit 5451e20eaa
2 changed files with 7 additions and 6 deletions

View File

@@ -899,7 +899,7 @@ Json::Value RPCHandler::doAccountLines(Json::Value jvRequest)
if (!lpLedger)
return jvResult;
ScopedUnlock su(theApp->getMasterLock(), lpLedger->isFixed());
ScopedUnlock su(theApp->getMasterLock());
if (!jvRequest.isMember("account"))
return rpcError(rpcINVALID_PARAMS);
@@ -980,7 +980,7 @@ Json::Value RPCHandler::doAccountOffers(Json::Value jvRequest)
if (!lpLedger)
return jvResult;
ScopedUnlock su(theApp->getMasterLock(), lpLedger->isClosed() || lpLedger->isImmutable());
ScopedUnlock su(theApp->getMasterLock());
if (!jvRequest.isMember("account"))
return rpcError(rpcINVALID_PARAMS);