mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
test: Use blocks_path where possible
This commit is contained in:
parent
fa9108941f
commit
5555d8db33
1 changed files with 1 additions and 2 deletions
|
@ -1021,5 +1021,4 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
|||
return self.config["components"].getboolean("USE_BDB")
|
||||
|
||||
def has_blockfile(self, node, filenum: str):
|
||||
blocksdir = node.datadir_path / self.chain / 'blocks'
|
||||
return (blocksdir / f"blk{filenum}.dat").is_file()
|
||||
return (node.blocks_path/ f"blk{filenum}.dat").is_file()
|
||||
|
|
Loading…
Add table
Reference in a new issue