mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Use jss for many Json fields.
* Document JsonFields. * Remove some unused JsonFields values.
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include <ripple/resource/impl/Import.h>
|
||||
#include <ripple/basics/UnorderedContainers.h>
|
||||
#include <ripple/json/json_value.h>
|
||||
#include <ripple/protocol/JsonFields.h>
|
||||
#include <beast/chrono/abstract_clock.h>
|
||||
#include <beast/Insight.h>
|
||||
#include <beast/threads/SharedData.h>
|
||||
@@ -253,9 +254,9 @@ public:
|
||||
if ((localBalance + inboundEntry.remote_balance) >= threshold)
|
||||
{
|
||||
Json::Value& entry = (ret[inboundEntry.to_string()] = Json::objectValue);
|
||||
entry["local"] = localBalance;
|
||||
entry["remote"] = inboundEntry.remote_balance;
|
||||
entry["type"] = "outbound";
|
||||
entry[jss::local] = localBalance;
|
||||
entry[jss::remote] = inboundEntry.remote_balance;
|
||||
entry[jss::type] = "outbound";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -265,9 +266,9 @@ public:
|
||||
if ((localBalance + outboundEntry.remote_balance) >= threshold)
|
||||
{
|
||||
Json::Value& entry = (ret[outboundEntry.to_string()] = Json::objectValue);
|
||||
entry["local"] = localBalance;
|
||||
entry["remote"] = outboundEntry.remote_balance;
|
||||
entry["type"] = "outbound";
|
||||
entry[jss::local] = localBalance;
|
||||
entry[jss::remote] = outboundEntry.remote_balance;
|
||||
entry[jss::type] = "outbound";
|
||||
}
|
||||
|
||||
}
|
||||
@@ -277,9 +278,9 @@ public:
|
||||
if ((localBalance + adminEntry.remote_balance) >= threshold)
|
||||
{
|
||||
Json::Value& entry = (ret[adminEntry.to_string()] = Json::objectValue);
|
||||
entry["local"] = localBalance;
|
||||
entry["remote"] = adminEntry.remote_balance;
|
||||
entry["type"] = "admin";
|
||||
entry[jss::local] = localBalance;
|
||||
entry[jss::remote] = adminEntry.remote_balance;
|
||||
entry[jss::type] = "admin";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user