Cleanups.

This commit is contained in:
JoelKatz
2013-05-17 01:44:49 -07:00
parent 141c2dce11
commit c377562e7f

View File

@@ -1146,9 +1146,6 @@ Json::Value RPCHandler::doAccountOffers(Json::Value jvRequest, int& cost, Scoped
AccountState::pointer as = mNetOps->getAccountState(lpLedger, raAccount); AccountState::pointer as = mNetOps->getAccountState(lpLedger, raAccount);
if (lpLedger->isImmutable())
MasterLockHolder.unlock();
if (as) if (as)
{ {
Json::Value& jsonLines = (jvResult["offers"] = Json::arrayValue); 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(); Offer* offer=(Offer*)item.get();
STAmount takerPays = offer->getTakerPays();
STAmount takerGets = offer->getTakerGets();
//RippleAddress account = offer->getAccount();
Json::Value& obj = jsonLines.append(Json::objectValue); Json::Value& obj = jsonLines.append(Json::objectValue);
//obj["account"] = account.humanAccountID(); offer->getTakerPays().setJson(obj["taker_pays"]);
takerPays.setJson(obj["taker_pays"]); offer->getTakerGets().setJson(obj["taker_gets"]);
takerGets.setJson(obj["taker_gets"]);
obj["seq"] = offer->getSeq(); obj["seq"] = offer->getSeq();
} }