mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Breaking Json API, return versions as chars.
This commit is contained in:
@@ -487,18 +487,18 @@ Json::Value RPCServer::doAccountInfo(const Json::Value ¶ms)
|
||||
|
||||
// Get info on account.
|
||||
|
||||
uint256 uClosed = mNetOps->getClosedLedger();
|
||||
Json::Value jClosed = accountFromString(uClosed, naAccount, bIndex, strIdent, iIndex);
|
||||
uint256 uAccepted = mNetOps->getClosedLedger();
|
||||
Json::Value jAccepted = accountFromString(uAccepted, naAccount, bIndex, strIdent, iIndex);
|
||||
|
||||
if (jClosed.empty())
|
||||
if (jAccepted.empty())
|
||||
{
|
||||
AccountState::pointer asClosed = mNetOps->getAccountState(uClosed, naAccount);
|
||||
AccountState::pointer asAccepted = mNetOps->getAccountState(uAccepted, naAccount);
|
||||
|
||||
if (asClosed)
|
||||
asClosed->addJson(jClosed);
|
||||
if (asAccepted)
|
||||
asAccepted->addJson(jAccepted);
|
||||
}
|
||||
|
||||
ret["closed"] = jClosed;
|
||||
ret["accepted"] = jAccepted;
|
||||
|
||||
uint256 uCurrent = mNetOps->getCurrentLedger();
|
||||
Json::Value jCurrent = accountFromString(uCurrent, naAccount, bIndex, strIdent, iIndex);
|
||||
@@ -514,7 +514,7 @@ Json::Value RPCServer::doAccountInfo(const Json::Value ¶ms)
|
||||
ret["current"] = jCurrent;
|
||||
|
||||
#if 0
|
||||
if (!jClosed && !asCurrent)
|
||||
if (!jAccepted && !asCurrent)
|
||||
{
|
||||
ret["account"] = naAccount.humanAccountID();
|
||||
ret["status"] = "NotFound";
|
||||
@@ -528,7 +528,7 @@ Json::Value RPCServer::doAccountInfo(const Json::Value ¶ms)
|
||||
// account_lines <account>|<nickname>|<account_public_key> [<index>]
|
||||
Json::Value RPCServer::doAccountLines(const Json::Value ¶ms)
|
||||
{
|
||||
// uint256 uClosed = mNetOps->getClosedLedger();
|
||||
// uint256 uAccepted = mNetOps->getClosedLedger();
|
||||
uint256 uCurrent = mNetOps->getCurrentLedger();
|
||||
|
||||
std::string strIdent = params[0u].asString();
|
||||
|
||||
Reference in New Issue
Block a user