Fix bitcoin-cli --version

By declaring the relevant option.

Note contrib/devtools/gen-manpages.sh relies on this version information.
This commit is contained in:
Ben Woosley
2018-07-20 14:14:08 -04:00
parent 2dc5ab6378
commit 5b82aa7352
2 changed files with 4 additions and 0 deletions

View File

@@ -15,6 +15,9 @@ class TestBitcoinCli(BitcoinTestFramework):
def run_test(self):
"""Main test logic"""
cli_response = self.nodes[0].cli("-version").send_cli()
assert("Bitcoin Core RPC client version" in cli_response)
self.log.info("Compare responses from gewalletinfo RPC and `bitcoin-cli getwalletinfo`")
cli_response = self.nodes[0].cli.getwalletinfo()
rpc_response = self.nodes[0].getwalletinfo()