mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
cli: remove duplicate wallet fields from -getinfo
This commit is contained in:
parent
12408d33c6
commit
3f6568d66b
2 changed files with 1 additions and 7 deletions
|
@ -253,10 +253,6 @@ public:
|
||||||
}
|
}
|
||||||
result.pushKV("version", batch[ID_NETWORKINFO]["result"]["version"]);
|
result.pushKV("version", batch[ID_NETWORKINFO]["result"]["version"]);
|
||||||
result.pushKV("protocolversion", batch[ID_NETWORKINFO]["result"]["protocolversion"]);
|
result.pushKV("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", batch[ID_NETWORKINFO]["result"]["timeoffset"]);
|
result.pushKV("timeoffset", batch[ID_NETWORKINFO]["result"]["timeoffset"]);
|
||||||
result.pushKV("connections", batch[ID_NETWORKINFO]["result"]["connections"]);
|
result.pushKV("connections", batch[ID_NETWORKINFO]["result"]["connections"]);
|
||||||
|
|
|
@ -57,9 +57,6 @@ class TestBitcoinCli(BitcoinTestFramework):
|
||||||
|
|
||||||
assert_equal(cli_get_info['version'], network_info['version'])
|
assert_equal(cli_get_info['version'], network_info['version'])
|
||||||
assert_equal(cli_get_info['protocolversion'], network_info['protocolversion'])
|
assert_equal(cli_get_info['protocolversion'], network_info['protocolversion'])
|
||||||
if self.is_wallet_compiled():
|
|
||||||
assert_equal(cli_get_info['walletversion'], wallet_info['walletversion'])
|
|
||||||
assert_equal(cli_get_info['balance'], wallet_info['balance'])
|
|
||||||
assert_equal(cli_get_info['blocks'], blockchain_info['blocks'])
|
assert_equal(cli_get_info['blocks'], blockchain_info['blocks'])
|
||||||
assert_equal(cli_get_info['timeoffset'], network_info['timeoffset'])
|
assert_equal(cli_get_info['timeoffset'], network_info['timeoffset'])
|
||||||
assert_equal(cli_get_info['connections'], network_info['connections'])
|
assert_equal(cli_get_info['connections'], network_info['connections'])
|
||||||
|
@ -67,6 +64,7 @@ class TestBitcoinCli(BitcoinTestFramework):
|
||||||
assert_equal(cli_get_info['difficulty'], blockchain_info['difficulty'])
|
assert_equal(cli_get_info['difficulty'], blockchain_info['difficulty'])
|
||||||
assert_equal(cli_get_info['testnet'], blockchain_info['chain'] == "test")
|
assert_equal(cli_get_info['testnet'], blockchain_info['chain'] == "test")
|
||||||
if self.is_wallet_compiled():
|
if self.is_wallet_compiled():
|
||||||
|
assert_equal(cli_get_info['walletversion'], wallet_info['walletversion'])
|
||||||
assert_equal(cli_get_info['balance'], wallet_info['balance'])
|
assert_equal(cli_get_info['balance'], wallet_info['balance'])
|
||||||
assert_equal(cli_get_info['keypoololdest'], wallet_info['keypoololdest'])
|
assert_equal(cli_get_info['keypoololdest'], wallet_info['keypoololdest'])
|
||||||
assert_equal(cli_get_info['keypoolsize'], wallet_info['keypoolsize'])
|
assert_equal(cli_get_info['keypoolsize'], wallet_info['keypoolsize'])
|
||||||
|
|
Loading…
Add table
Reference in a new issue