diff options
author | fanquake <fanquake@gmail.com> | 2019-03-09 16:15:17 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2019-03-09 16:35:26 +0800 |
commit | 890396cbd504b4670597d39ecb037e69ffb8bd3e (patch) | |
tree | 304344ed7d24a517ebafc65a95aa56c2cea4ab0a /src/bitcoin-cli.cpp | |
parent | 12408d33c6ac85522a0751908230cb0f3b4078fc (diff) |
cli: replace testnet with chain and return network name as per BIP70.
Diffstat (limited to 'src/bitcoin-cli.cpp')
-rw-r--r-- | src/bitcoin-cli.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index b0e1f67d93..62a53e2308 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -262,7 +262,7 @@ public: result.pushKV("connections", batch[ID_NETWORKINFO]["result"]["connections"]); result.pushKV("proxy", batch[ID_NETWORKINFO]["result"]["networks"][0]["proxy"]); result.pushKV("difficulty", batch[ID_BLOCKCHAININFO]["result"]["difficulty"]); - result.pushKV("testnet", UniValue(batch[ID_BLOCKCHAININFO]["result"]["chain"].get_str() == "test")); + result.pushKV("chain", UniValue(batch[ID_BLOCKCHAININFO]["result"]["chain"])); if (!batch[ID_WALLETINFO].isNull()) { result.pushKV("walletversion", batch[ID_WALLETINFO]["result"]["walletversion"]); result.pushKV("balance", batch[ID_WALLETINFO]["result"]["balance"]); |