diff --git a/src/cpp/ripple/RPCHandler.cpp b/src/cpp/ripple/RPCHandler.cpp index de444d4dad..93482b0d66 100644 --- a/src/cpp/ripple/RPCHandler.cpp +++ b/src/cpp/ripple/RPCHandler.cpp @@ -1146,9 +1146,6 @@ Json::Value RPCHandler::doAccountOffers(Json::Value jvRequest, int& cost, Scoped AccountState::pointer as = mNetOps->getAccountState(lpLedger, raAccount); - if (lpLedger->isImmutable()) - MasterLockHolder.unlock(); - if (as) { Json::Value& jsonLines = (jvResult["offers"] = Json::arrayValue); @@ -1158,15 +1155,10 @@ Json::Value RPCHandler::doAccountOffers(Json::Value jvRequest, int& cost, Scoped { Offer* offer=(Offer*)item.get(); - STAmount takerPays = offer->getTakerPays(); - STAmount takerGets = offer->getTakerGets(); - //RippleAddress account = offer->getAccount(); - Json::Value& obj = jsonLines.append(Json::objectValue); - //obj["account"] = account.humanAccountID(); - takerPays.setJson(obj["taker_pays"]); - takerGets.setJson(obj["taker_gets"]); + offer->getTakerPays().setJson(obj["taker_pays"]); + offer->getTakerGets().setJson(obj["taker_gets"]); obj["seq"] = offer->getSeq(); }