[qa] Remove hardcoded "4 nodes" from test_framework

This commit is contained in:
MarcoFalke
2016-05-14 13:01:31 +02:00
parent 169d379c98
commit fac9349798
58 changed files with 291 additions and 138 deletions

View File

@@ -17,11 +17,15 @@ def txFromHex(hexstring):
return tx
class ListTransactionsTest(BitcoinTestFramework):
def __init__(self):
super().__init__()
self.num_nodes = 4
self.setup_clean_chain = False
def setup_nodes(self):
#This test requires mocktime
enable_mocktime()
return start_nodes(4, self.options.tmpdir)
return start_nodes(self.num_nodes, self.options.tmpdir)
def run_test(self):
# Simple send, 0 to 1: