diff options
author | sanket1729 <smk7@illinois.edu> | 2018-09-15 04:32:12 -0500 |
---|---|---|
committer | sanket1729 <smk7@illinois.edu> | 2018-09-17 08:25:10 -0500 |
commit | 0ca4c8b3c61984e9e2ab5a2a9a7c47faf139d1fc (patch) | |
tree | f61c3d6d645e2c7d11a7ffff230314068315532f /test/functional/rpc_blockchain.py | |
parent | 3832c25f176753b7ddb724c26ee7543fb1e1819e (diff) | |
download | bitcoin-0ca4c8b3c61984e9e2ab5a2a9a7c47faf139d1fc.tar.xz |
Changed functional tests which do not require wallets to run without
skipping .Addreses #14216. Changed get_deterministic_priv_key() to a
named tuple
Diffstat (limited to 'test/functional/rpc_blockchain.py')
-rwxr-xr-x | test/functional/rpc_blockchain.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/functional/rpc_blockchain.py b/test/functional/rpc_blockchain.py index 00317a2c08..f67ecc247c 100755 --- a/test/functional/rpc_blockchain.py +++ b/test/functional/rpc_blockchain.py @@ -48,9 +48,6 @@ class BlockchainTest(BitcoinTestFramework): def set_test_params(self): self.num_nodes = 1 - def skip_test_if_missing_module(self): - self.skip_if_no_wallet() - def run_test(self): self.restart_node(0, extra_args=['-stopatheight=207', '-prune=1']) # Set extra args with pruning after rescan is complete @@ -242,12 +239,12 @@ class BlockchainTest(BitcoinTestFramework): def _test_stopatheight(self): assert_equal(self.nodes[0].getblockcount(), 200) - self.nodes[0].generate(6) + self.nodes[0].generatetoaddress(6, self.nodes[0].get_deterministic_priv_key().address) assert_equal(self.nodes[0].getblockcount(), 206) self.log.debug('Node should not stop at this height') assert_raises(subprocess.TimeoutExpired, lambda: self.nodes[0].process.wait(timeout=3)) try: - self.nodes[0].generate(1) + self.nodes[0].generatetoaddress(1, self.nodes[0].get_deterministic_priv_key().address) except (ConnectionError, http.client.BadStatusLine): pass # The node already shut down before response self.log.debug('Node should stop at this height...') |