aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2016-05-11 13:19:10 +0200
committerMarcoFalke <falke.marco@gmail.com>2016-05-11 16:43:32 +0200
commitfad60b3911236eabf89f4e06274500e57bb08d0d (patch)
tree4a425632b6ec721bb930e4ec10693ce8a27ebb0d
parent423ca302a3ee87000530da3c105f269b8fabece7 (diff)
[qa] Fix bip9-softforks blockstore issue
-rwxr-xr-xqa/rpc-tests/bip9-softforks.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/qa/rpc-tests/bip9-softforks.py b/qa/rpc-tests/bip9-softforks.py
index e9b659d508..a8fb878dcb 100755
--- a/qa/rpc-tests/bip9-softforks.py
+++ b/qa/rpc-tests/bip9-softforks.py
@@ -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
@@ -167,11 +168,13 @@ class BIP9SoftForksTest(ComparisonTestFramework):
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