mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-03 09:25:51 +00:00
server_info cleanup.
This commit is contained in:
@@ -1309,7 +1309,6 @@ Json::Value NetworkOPs::getServerInfo(bool human, bool admin)
|
|||||||
Json::Value l(Json::objectValue);
|
Json::Value l(Json::objectValue);
|
||||||
l["seq"] = Json::UInt(lpClosed->getLedgerSeq());
|
l["seq"] = Json::UInt(lpClosed->getLedgerSeq());
|
||||||
l["hash"] = lpClosed->getHash().GetHex();
|
l["hash"] = lpClosed->getHash().GetHex();
|
||||||
l["validated"] = valid;
|
|
||||||
if (!human)
|
if (!human)
|
||||||
{
|
{
|
||||||
l["base_fee"] = Json::Value::UInt(baseFee);
|
l["base_fee"] = Json::Value::UInt(baseFee);
|
||||||
@@ -1335,7 +1334,10 @@ Json::Value NetworkOPs::getServerInfo(bool human, bool admin)
|
|||||||
l["age"] = Json::UInt(age);
|
l["age"] = Json::UInt(age);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
info["closed_ledger"] = l;
|
if (valid)
|
||||||
|
info["validated_ledger"] = l;
|
||||||
|
else
|
||||||
|
info["closed_ledger"] = l;
|
||||||
}
|
}
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
|
|||||||
Reference in New Issue
Block a user