mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45: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);
|
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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user