Skip to content

Commit c94852e

Browse files
author
MarcoFalke
committed
Merge #15564: cli: remove duplicate wallet fields from -getinfo
3f6568d cli: remove duplicate wallet fields from -getinfo (fanquake) Pull request description: `walletversion` and `balance` are both included below. Tree-SHA512: cd9fe9739a2f492c8f7c0407b43a6fa95187f7e5318f05e080bac112f9f4333d2e9b84c505d098f8d66fa79439007d1c0b22e5a87d70bf5ea53ab647ee4c2046
2 parents 887f57e + 3f6568d commit c94852e

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/bitcoin-cli.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,6 @@ class GetinfoRequestHandler: public BaseRequestHandler
253253
}
254254
result.pushKV("version", batch[ID_NETWORKINFO]["result"]["version"]);
255255
result.pushKV("protocolversion", batch[ID_NETWORKINFO]["result"]["protocolversion"]);
256-
if (!batch[ID_WALLETINFO].isNull()) {
257-
result.pushKV("walletversion", batch[ID_WALLETINFO]["result"]["walletversion"]);
258-
result.pushKV("balance", batch[ID_WALLETINFO]["result"]["balance"]);
259-
}
260256
result.pushKV("blocks", batch[ID_BLOCKCHAININFO]["result"]["blocks"]);
261257
result.pushKV("timeoffset", batch[ID_NETWORKINFO]["result"]["timeoffset"]);
262258
result.pushKV("connections", batch[ID_NETWORKINFO]["result"]["connections"]);

test/functional/interface_bitcoin_cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,14 @@ def run_test(self):
5757

5858
assert_equal(cli_get_info['version'], network_info['version'])
5959
assert_equal(cli_get_info['protocolversion'], network_info['protocolversion'])
60-
if self.is_wallet_compiled():
61-
assert_equal(cli_get_info['walletversion'], wallet_info['walletversion'])
62-
assert_equal(cli_get_info['balance'], wallet_info['balance'])
6360
assert_equal(cli_get_info['blocks'], blockchain_info['blocks'])
6461
assert_equal(cli_get_info['timeoffset'], network_info['timeoffset'])
6562
assert_equal(cli_get_info['connections'], network_info['connections'])
6663
assert_equal(cli_get_info['proxy'], network_info['networks'][0]['proxy'])
6764
assert_equal(cli_get_info['difficulty'], blockchain_info['difficulty'])
6865
assert_equal(cli_get_info['chain'], blockchain_info['chain'])
6966
if self.is_wallet_compiled():
67+
assert_equal(cli_get_info['walletversion'], wallet_info['walletversion'])
7068
assert_equal(cli_get_info['balance'], wallet_info['balance'])
7169
assert_equal(cli_get_info['keypoololdest'], wallet_info['keypoololdest'])
7270
assert_equal(cli_get_info['keypoolsize'], wallet_info['keypoolsize'])

0 commit comments

Comments
 (0)