Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-cli.cpp
Show First 20 Lines • Show All 357 Lines • ▼ Show 20 Lines | UniValue ProcessReply(const UniValue &batch_in) override { | ||||
result.pushKV("version", batch[ID_NETWORKINFO]["result"]["version"]); | result.pushKV("version", batch[ID_NETWORKINFO]["result"]["version"]); | ||||
result.pushKV("blocks", batch[ID_BLOCKCHAININFO]["result"]["blocks"]); | result.pushKV("blocks", batch[ID_BLOCKCHAININFO]["result"]["blocks"]); | ||||
result.pushKV("headers", batch[ID_BLOCKCHAININFO]["result"]["headers"]); | result.pushKV("headers", batch[ID_BLOCKCHAININFO]["result"]["headers"]); | ||||
result.pushKV( | result.pushKV( | ||||
"verificationprogress", | "verificationprogress", | ||||
batch[ID_BLOCKCHAININFO]["result"]["verificationprogress"]); | batch[ID_BLOCKCHAININFO]["result"]["verificationprogress"]); | ||||
result.pushKV("timeoffset", | result.pushKV("timeoffset", | ||||
batch[ID_NETWORKINFO]["result"]["timeoffset"]); | batch[ID_NETWORKINFO]["result"]["timeoffset"]); | ||||
result.pushKV("connections", | |||||
UniValue connections(UniValue::VOBJ); | |||||
connections.pushKV("in", | |||||
batch[ID_NETWORKINFO]["result"]["connections_in"]); | |||||
connections.pushKV("out", | |||||
batch[ID_NETWORKINFO]["result"]["connections_out"]); | |||||
connections.pushKV("total", | |||||
batch[ID_NETWORKINFO]["result"]["connections"]); | batch[ID_NETWORKINFO]["result"]["connections"]); | ||||
result.pushKV("connections", connections); | |||||
result.pushKV("proxy", | result.pushKV("proxy", | ||||
batch[ID_NETWORKINFO]["result"]["networks"][0]["proxy"]); | batch[ID_NETWORKINFO]["result"]["networks"][0]["proxy"]); | ||||
result.pushKV("difficulty", | result.pushKV("difficulty", | ||||
batch[ID_BLOCKCHAININFO]["result"]["difficulty"]); | batch[ID_BLOCKCHAININFO]["result"]["difficulty"]); | ||||
result.pushKV("chain", | result.pushKV("chain", | ||||
UniValue(batch[ID_BLOCKCHAININFO]["result"]["chain"])); | UniValue(batch[ID_BLOCKCHAININFO]["result"]["chain"])); | ||||
if (!batch[ID_WALLETINFO]["result"].isNull()) { | if (!batch[ID_WALLETINFO]["result"].isNull()) { | ||||
result.pushKV("keypoolsize", | result.pushKV("keypoolsize", | ||||
▲ Show 20 Lines • Show All 774 Lines • Show Last 20 Lines |