[qa] Fix bip9-softforks blockstore issue
This commit is contained in:
parent
423ca302a3
commit
fad60b3911
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
# Distributed under the MIT software license, see the accompanying
|
# Distributed under the MIT software license, see the accompanying
|
||||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
# 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.test_framework import ComparisonTestFramework
|
||||||
from test_framework.util import *
|
from test_framework.util import *
|
||||||
from test_framework.mininode import CTransaction, NetworkThread
|
from test_framework.mininode import CTransaction, NetworkThread
|
||||||
|
@ -167,11 +168,13 @@ class BIP9SoftForksTest(ComparisonTestFramework):
|
||||||
yield TestInstance([[block, False]])
|
yield TestInstance([[block, False]])
|
||||||
|
|
||||||
# Restart all
|
# Restart all
|
||||||
|
self.test.block_store.close()
|
||||||
stop_nodes(self.nodes)
|
stop_nodes(self.nodes)
|
||||||
wait_bitcoinds()
|
wait_bitcoinds()
|
||||||
shutil.rmtree(self.options.tmpdir)
|
shutil.rmtree(self.options.tmpdir)
|
||||||
self.setup_chain()
|
self.setup_chain()
|
||||||
self.setup_network()
|
self.setup_network()
|
||||||
|
self.test.block_store = BlockStore(self.options.tmpdir)
|
||||||
self.test.clear_all_connections()
|
self.test.clear_all_connections()
|
||||||
self.test.add_all_connections(self.nodes)
|
self.test.add_all_connections(self.nodes)
|
||||||
NetworkThread().start() # Start up network handling in another thread
|
NetworkThread().start() # Start up network handling in another thread
|
||||||
|
|
Loading…
Reference in a new issue