Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-cli.cpp
Show First 20 Lines • Show All 312 Lines • ▼ Show 20 Lines | UniValue ProcessReply(const UniValue &batch_in) override { | ||||
return batch[ID_NETWORKINFO]; | return batch[ID_NETWORKINFO]; | ||||
} | } | ||||
if (!batch[ID_BLOCKCHAININFO]["error"].isNull()) { | if (!batch[ID_BLOCKCHAININFO]["error"].isNull()) { | ||||
return batch[ID_BLOCKCHAININFO]; | return batch[ID_BLOCKCHAININFO]; | ||||
} | } | ||||
result.pushKV("version", batch[ID_NETWORKINFO]["result"]["version"]); | result.pushKV("version", batch[ID_NETWORKINFO]["result"]["version"]); | ||||
result.pushKV("protocolversion", | result.pushKV("protocolversion", | ||||
batch[ID_NETWORKINFO]["result"]["protocolversion"]); | batch[ID_NETWORKINFO]["result"]["protocolversion"]); | ||||
if (!batch[ID_WALLETINFO].isNull()) { | |||||
result.pushKV("walletversion", | |||||
batch[ID_WALLETINFO]["result"]["walletversion"]); | |||||
result.pushKV("balance", batch[ID_WALLETINFO]["result"]["balance"]); | |||||
} | |||||
result.pushKV("blocks", batch[ID_BLOCKCHAININFO]["result"]["blocks"]); | result.pushKV("blocks", batch[ID_BLOCKCHAININFO]["result"]["blocks"]); | ||||
result.pushKV("timeoffset", | result.pushKV("timeoffset", | ||||
batch[ID_NETWORKINFO]["result"]["timeoffset"]); | batch[ID_NETWORKINFO]["result"]["timeoffset"]); | ||||
result.pushKV("connections", | result.pushKV("connections", | ||||
batch[ID_NETWORKINFO]["result"]["connections"]); | batch[ID_NETWORKINFO]["result"]["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", | ||||
▲ Show 20 Lines • Show All 322 Lines • Show Last 20 Lines |