mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-28 13:02:38 +02:00
test: Use blocks_path where possible
Github-Pull: #29262
Rebased-From: 5555d8db33
This commit is contained in:
parent
efbedc001b
commit
0aa26d600e
@ -1006,5 +1006,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…
Reference in New Issue
Block a user