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/feature_blocksdir.py | |
parent | 3832c25f176753b7ddb724c26ee7543fb1e1819e (diff) |
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/feature_blocksdir.py')
-rwxr-xr-x | test/functional/feature_blocksdir.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/functional/feature_blocksdir.py b/test/functional/feature_blocksdir.py index 824f0d7e09..c170f510c8 100755 --- a/test/functional/feature_blocksdir.py +++ b/test/functional/feature_blocksdir.py @@ -16,9 +16,6 @@ class BlocksdirTest(BitcoinTestFramework): self.setup_clean_chain = True self.num_nodes = 1 - def skip_test_if_missing_module(self): - self.skip_if_no_wallet() - def run_test(self): self.stop_node(0) shutil.rmtree(self.nodes[0].datadir) @@ -30,7 +27,7 @@ class BlocksdirTest(BitcoinTestFramework): self.log.info("Starting with existing blocksdir ...") self.start_node(0, ["-blocksdir=" + blocksdir_path]) self.log.info("mining blocks..") - self.nodes[0].generate(10) + self.nodes[0].generatetoaddress(10, self.nodes[0].get_deterministic_priv_key().address) assert os.path.isfile(os.path.join(blocksdir_path, "regtest", "blocks", "blk00000.dat")) assert os.path.isdir(os.path.join(self.nodes[0].datadir, "regtest", "blocks", "index")) |