Tests: Use self.chain instead of 'regtest' in almost all current tests

This commit is contained in:
Jorge Timón committed 2019-10-26 13:24:39 +02:00
1 parent be50469217
commit 1abcecc40c
16 files changed
+44 -44

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ class AbortNodeTest(BitcoinTestFramework):
datadir = get_datadir_path(self.options.tmpdir, 0)
# Deleting the undo file will result in reorg failure
os.unlink(os.path.join(datadir, 'regtest', 'blocks', 'rev00000.dat'))
os.unlink(os.path.join(datadir, self.chain, 'blocks', 'rev00000.dat'))
# Connecting to a node with a more work chain will trigger a reorg
# attempt.