Skip to content

Commit 5b736dd

Browse files
committed
Merge #8041: [qa] Fix bip9-softforks blockstore issue
fad60b3 [qa] Fix bip9-softforks blockstore issue (MarcoFalke)
2 parents 69b3a6d + fad60b3 commit 5b736dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

qa/rpc-tests/bip9-softforks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

6+
from test_framework.blockstore import BlockStore
67
from test_framework.test_framework import ComparisonTestFramework
78
from test_framework.util import *
89
from test_framework.mininode import CTransaction, NetworkThread
@@ -167,11 +168,13 @@ def test_BIP(self, bipName, activated_version, invalidate, invalidatePostSignatu
167168
yield TestInstance([[block, False]])
168169

169170
# Restart all
171+
self.test.block_store.close()
170172
stop_nodes(self.nodes)
171173
wait_bitcoinds()
172174
shutil.rmtree(self.options.tmpdir)
173175
self.setup_chain()
174176
self.setup_network()
177+
self.test.block_store = BlockStore(self.options.tmpdir)
175178
self.test.clear_all_connections()
176179
self.test.add_all_connections(self.nodes)
177180
NetworkThread().start() # Start up network handling in another thread

0 commit comments

Comments
 (0)