mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
@@ -199,20 +199,18 @@ private:
|
|||||||
jv.as_object()[JS(amendment_blocked)] = true;
|
jv.as_object()[JS(amendment_blocked)] = true;
|
||||||
|
|
||||||
if (info.rippledInfo)
|
if (info.rippledInfo)
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
{
|
||||||
auto const& rippledInfo = info.rippledInfo.value();
|
auto const& rippledInfo = info.rippledInfo.value();
|
||||||
|
|
||||||
|
if (rippledInfo.contains(JS(load_factor)))
|
||||||
jv.as_object()[JS(load_factor)] = rippledInfo.at(JS(load_factor));
|
jv.as_object()[JS(load_factor)] = rippledInfo.at(JS(load_factor));
|
||||||
|
if (rippledInfo.contains(JS(validation_quorum)))
|
||||||
jv.as_object()[JS(validation_quorum)] = rippledInfo.at(JS(validation_quorum));
|
jv.as_object()[JS(validation_quorum)] = rippledInfo.at(JS(validation_quorum));
|
||||||
|
if (rippledInfo.contains(JS(build_version)))
|
||||||
jv.as_object()["rippled_version"] = rippledInfo.at(JS(build_version));
|
jv.as_object()["rippled_version"] = rippledInfo.at(JS(build_version));
|
||||||
|
if (rippledInfo.contains(JS(network_id)))
|
||||||
jv.as_object()[JS(network_id)] = rippledInfo.at(JS(network_id));
|
jv.as_object()[JS(network_id)] = rippledInfo.at(JS(network_id));
|
||||||
}
|
}
|
||||||
catch (std::exception const&)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (info.adminSection)
|
if (info.adminSection)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user