mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
doAccountLines cleanup.
This commit is contained in:
@@ -1116,10 +1116,13 @@ Json::Value RPCHandler::doAccountLines (Json::Value params, LoadType* loadType,
|
|||||||
|
|
||||||
if (lpLedger->hasAccount (raAccount))
|
if (lpLedger->hasAccount (raAccount))
|
||||||
{
|
{
|
||||||
|
AccountItems rippleLines (raAccount.getAccountID (), lpLedger, AccountItem::pointer (new RippleState ()));
|
||||||
|
if (!bUnlocked)
|
||||||
|
masterLockHolder.unlock ();
|
||||||
|
|
||||||
jvResult["account"] = raAccount.humanAccountID ();
|
jvResult["account"] = raAccount.humanAccountID ();
|
||||||
Json::Value& jsonLines = (jvResult["lines"] = Json::arrayValue);
|
Json::Value& jsonLines = (jvResult["lines"] = Json::arrayValue);
|
||||||
|
|
||||||
AccountItems rippleLines (raAccount.getAccountID (), lpLedger, AccountItem::pointer (new RippleState ()));
|
|
||||||
|
|
||||||
BOOST_FOREACH (AccountItem::ref item, rippleLines.getItems ())
|
BOOST_FOREACH (AccountItem::ref item, rippleLines.getItems ())
|
||||||
{
|
{
|
||||||
@@ -1153,8 +1156,6 @@ Json::Value RPCHandler::doAccountLines (Json::Value params, LoadType* loadType,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!bUnlocked)
|
|
||||||
masterLockHolder.unlock ();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user