diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-07-12 15:40:09 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-08-01 15:26:55 +0200 |
commit | fa69148a0a26c5054dbccdceeac8e117bf449275 (patch) | |
tree | 7c43fdf64b0192c932cd14538d5e61b1e73db752 /test/functional/feature_blocksdir.py | |
parent | e5a9f2fb62dc4db6cad21b2997d96a881ea64125 (diff) | |
download | bitcoin-fa69148a0a26c5054dbccdceeac8e117bf449275.tar.xz |
scripted-diff: Use blocks_path where possible
-BEGIN VERIFY SCRIPT-
sed -i 's|].chain_path, .blocks.|].blocks_path|g' $(git grep -l chain_path)
-END VERIFY SCRIPT-
Diffstat (limited to 'test/functional/feature_blocksdir.py')
-rwxr-xr-x | test/functional/feature_blocksdir.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/feature_blocksdir.py b/test/functional/feature_blocksdir.py index 99763ab97f..76b9277e2f 100755 --- a/test/functional/feature_blocksdir.py +++ b/test/functional/feature_blocksdir.py @@ -18,7 +18,7 @@ class BlocksdirTest(BitcoinTestFramework): def run_test(self): self.stop_node(0) - assert os.path.isdir(os.path.join(self.nodes[0].chain_path, "blocks")) + assert os.path.isdir(os.path.join(self.nodes[0].blocks_path)) assert not os.path.isdir(os.path.join(self.nodes[0].datadir, "blocks")) shutil.rmtree(self.nodes[0].datadir) initialize_datadir(self.options.tmpdir, 0, self.chain) @@ -31,7 +31,7 @@ class BlocksdirTest(BitcoinTestFramework): self.log.info("mining blocks..") self.generatetoaddress(self.nodes[0], 10, self.nodes[0].get_deterministic_priv_key().address) assert os.path.isfile(os.path.join(blocksdir_path, self.chain, "blocks", "blk00000.dat")) - assert os.path.isdir(os.path.join(self.nodes[0].chain_path, "blocks", "index")) + assert os.path.isdir(os.path.join(self.nodes[0].blocks_path, "index")) if __name__ == '__main__': |