mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
@@ -28,6 +28,7 @@
|
||||
#include <rpc/common/Validators.h>
|
||||
|
||||
#include <ripple/basics/chrono.h>
|
||||
#include <ripple/protocol/BuildInfo.h>
|
||||
|
||||
#include <chrono>
|
||||
#include <fmt/core.h>
|
||||
@@ -87,6 +88,7 @@ public:
|
||||
std::chrono::time_point<std::chrono::system_clock> time = std::chrono::system_clock::now();
|
||||
std::chrono::seconds uptime = {};
|
||||
std::string clioVersion = Build::getClioVersionString();
|
||||
std::string xrplVersion = ripple::BuildInfo::getVersionString();
|
||||
std::optional<boost::json::object> rippledInfo = std::nullopt;
|
||||
ValidatedLedgerSection validatedLedger = {};
|
||||
CacheSection cache = {};
|
||||
@@ -194,6 +196,7 @@ private:
|
||||
{JS(time), to_string(std::chrono::floor<std::chrono::microseconds>(info.time))},
|
||||
{JS(uptime), info.uptime.count()},
|
||||
{"clio_version", info.clioVersion},
|
||||
{"libxrpl_version", info.xrplVersion},
|
||||
{JS(validated_ledger), value_from(info.validatedLedger)},
|
||||
{"cache", value_from(info.cache)},
|
||||
};
|
||||
|
||||
@@ -71,6 +71,7 @@ protected:
|
||||
EXPECT_STREQ(info.at("complete_ledgers").as_string().c_str(), "10-30");
|
||||
EXPECT_TRUE(info.contains("load_factor"));
|
||||
EXPECT_TRUE(info.contains("clio_version"));
|
||||
EXPECT_TRUE(info.contains("libxrpl_version"));
|
||||
EXPECT_TRUE(info.contains("validated_ledger"));
|
||||
EXPECT_TRUE(info.contains("time"));
|
||||
EXPECT_TRUE(info.contains("uptime"));
|
||||
|
||||
Reference in New Issue
Block a user