Create a simulated `getinfo` request. */
| 308 | |
| 309 | /** Create a simulated `getinfo` request. */ |
| 310 | UniValue PrepareRequest(const std::string& method, const std::vector<std::string>& args) override |
| 311 | { |
| 312 | if (!args.empty()) { |
| 313 | throw std::runtime_error("-getinfo takes no arguments"); |
| 314 | } |
| 315 | UniValue result(UniValue::VARR); |
| 316 | result.push_back(JSONRPCRequestObj("getnetworkinfo", NullUniValue, ID_NETWORKINFO)); |
| 317 | result.push_back(JSONRPCRequestObj("getblockchaininfo", NullUniValue, ID_BLOCKCHAININFO)); |
| 318 | result.push_back(JSONRPCRequestObj("getwalletinfo", NullUniValue, ID_WALLETINFO)); |
| 319 | result.push_back(JSONRPCRequestObj("getbalances", NullUniValue, ID_BALANCES)); |
| 320 | return result; |
| 321 | } |
| 322 | |
| 323 | /** Collect values from the batch and form a simulated `getinfo` reply. */ |
| 324 | UniValue ProcessReply(const UniValue &batch_in) override |
no test coverage detected