diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-07-12 15:03:38 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-07-25 15:51:36 +0200 |
commit | fafe43cb6c76a5f60194be128a40baf161d39920 (patch) | |
tree | c937fa5944c0a374f0a4828a24709f42f2f3de2d /test/functional/feature_reindex.py | |
parent | fa060c15fb5081e66ed1ebe05dca6e8026f32c4f (diff) | |
download | bitcoin-fafe43cb6c76a5f60194be128a40baf161d39920.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_reindex.py')
-rwxr-xr-x | test/functional/feature_reindex.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/feature_reindex.py b/test/functional/feature_reindex.py index fcbb49d420..83f1c5003c 100755 --- a/test/functional/feature_reindex.py +++ b/test/functional/feature_reindex.py @@ -38,7 +38,7 @@ class ReindexTest(BitcoinTestFramework): # In this test environment, blocks will always be in order (since # we're generating them rather than getting them from peers), so to # test out-of-order handling, swap blocks 1 and 2 on disk. - blk0 = self.nodes[0].chain_path / "blocks" / "blk00000.dat" + blk0 = self.nodes[0].blocks_path / "blk00000.dat" with open(blk0, 'r+b') as bf: # Read at least the first few blocks (including genesis) b = bf.read(2000) |