aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@pm.me>2021-06-17 16:09:38 -0400
committerJames O'Beirne <james.obeirne@pm.me>2023-09-30 06:41:23 -0400
commit42cae39356fd20d521aaf99aff1ed85856f3c9f3 (patch)
tree74509bb9f0295c8d87be8fd59c113e404f6ba683 /test/functional/test_framework
parent0f64bac6030334d798ae205cd7af4bf248feddd9 (diff)
test: add feature_assumeutxo functional test
Most ideas for test improvements (TODOs) provided by Russ Yanofsky.
Diffstat (limited to 'test/functional/test_framework')
-rwxr-xr-xtest/functional/test_framework/test_framework.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py
index 73e7516ea7..73635b4397 100755
--- a/test/functional/test_framework/test_framework.py
+++ b/test/functional/test_framework/test_framework.py
@@ -979,3 +979,7 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
def is_bdb_compiled(self):
"""Checks whether the wallet module was compiled with BDB support."""
return self.config["components"].getboolean("USE_BDB")
+
+ def has_blockfile(self, node, filenum: str):
+ blocksdir = os.path.join(node.datadir, self.chain, 'blocks', '')
+ return os.path.isfile(os.path.join(blocksdir, f"blk{filenum}.dat"))