Skip to content

Commit

Permalink
Merge bitcoin#8041: [qa] Fix bip9-softforks blockstore issue
Browse files Browse the repository at this point in the history
fad60b3 [qa] Fix bip9-softforks blockstore issue (MarcoFalke)
  • Loading branch information
laanwj authored and codablock committed Dec 21, 2017
1 parent 4ee3858 commit f0fe21d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qa/rpc-tests/bip9-softforks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

from test_framework.blockstore import BlockStore
from test_framework.test_framework import ComparisonTestFramework
from test_framework.util import *
from test_framework.mininode import CTransaction, NetworkThread
Expand Down Expand Up @@ -192,11 +193,13 @@ def test_BIP(self, bipName, activated_version, invalidate, invalidatePostSignatu
yield TestInstance([[block, False]])

# Restart all
self.test.block_store.close()
stop_nodes(self.nodes)
wait_bitcoinds()
shutil.rmtree(self.options.tmpdir)
self.setup_chain()
self.setup_network()
self.test.block_store = BlockStore(self.options.tmpdir)
self.test.clear_all_connections()
self.test.add_all_connections(self.nodes)
NetworkThread().start() # Start up network handling in another thread
Expand Down

0 comments on commit f0fe21d

Please sign in to comment.