mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-09-29 17:34:08 +02:00
test: Use blocks_path where possible
This commit is contained in:
@@ -1021,5 +1021,4 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
|||||||
return self.config["components"].getboolean("USE_BDB")
|
return self.config["components"].getboolean("USE_BDB")
|
||||||
|
|
||||||
def has_blockfile(self, node, filenum: str):
|
def has_blockfile(self, node, filenum: str):
|
||||||
blocksdir = node.datadir_path / self.chain / 'blocks'
|
return (node.blocks_path/ f"blk{filenum}.dat").is_file()
|
||||||
return (blocksdir / f"blk{filenum}.dat").is_file()
|
|
||||||
|
Reference in New Issue
Block a user