14 BOOST_ASSERT(
api_ !=
nullptr);
18 const jsonrpc::Request::Parameters ¶ms) {
19 if (!params.empty()) {
20 throw jsonrpc::InvalidParametersFault(
"Method should not have params");
22 return outcome::success();
26 jsonrpc::Value::Struct data;
35 static_cast<uint64_t>(
api_->getPeerManager()->activePeersNumber()));
39 data[
"shouldHavePeers"] =
outcome::result< void > init(const jsonrpc::Request::Parameters ¶ms)
std::shared_ptr< SystemApi > api_
outcome::result< jsonrpc::Value::Struct > execute()
Health(const Health &)=delete
jsonrpc::Value makeValue(const uint32_t &)