mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 14:35:52 +00:00
Cleanups.
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user