Exemple #1
0
 def __init__(self, build_variant, client_dirs):
     BitcoinTestFramework.__init__(self)
     self.buildVariant = build_variant
     self.clientDirs = client_dirs
     self.bins = [ os.path.join(base_dir, x, self.buildVariant, "src","bitcoind") for x in clientDirs]
     self.forkTime = int(time.time())
     self.conf = { "forkMay2018time": self.forkTime, "acceptnonstdtxn": 0 }
     logging.info(self.bins)
    def __init__(self, test_assertion='success'):
        self.rep = False
        BitcoinTestFramework.__init__(self)

        if test_assertion == 'success':
            self.test_assertion = self.assert_success
        else:
            self.test_assertion = self.assert_failure
 def __init__(self, build_variant, client_dirs, extended=False):
     BitcoinTestFramework.__init__(self)
     self.buildVariant = build_variant
     self.clientDirs = client_dirs
     self.extended = extended
     self.unspendableTx = 0
     self.bins = [ os.path.join(base_dir, x, self.buildVariant, "src","bitcoind") for x in clientDirs]
     logging.info(self.bins)
    def __init__(self, block_type, n_txs, n_nodes=NUM_PROCS + 1):
        self.block_type = block_type
        self.n_txs = n_txs
        self.n_nodes = n_nodes
        self.rep = False
        self.stats = {}

        BitcoinTestFramework.__init__(self)
Exemple #5
0
 def __init__(self, build_variant, client_dirs):
     BitcoinTestFramework.__init__(self)
     self.buildVariant = build_variant
     self.clientDirs = client_dirs
     self.bins = [
         os.path.join(base_dir, x, self.buildVariant, "src", "bitcoind")
         for x in clientDirs
     ]
     logging.info(self.bins)
 def __init__(self, build_variant, client_dirs, bitcoinConfDict):
     BitcoinTestFramework.__init__(self)
     self.buildVariant = build_variant
     self.clientDirs = client_dirs
     self.bins = [
         os.path.join(base_dir, x, self.buildVariant, "src", "bitcoind")
         for x in clientDirs
     ]
     self.forkTime = int(time.time())
     self.conf = {
         "forkMay2018time": self.forkTime,
         "acceptnonstdtxn": 0,
         "relaypriority": 0
     }
     self.conf.update(bitcoinConfDict)
     # config required for running hub
     self.conf = remove_hubclient_parameters(self.bins, self.conf)
     logging.info(self.bins)
Exemple #7
0
 def __init__(self, bigTest=0):
     self.bigTest = bigTest
     BitcoinTestFramework.__init__(self)
Exemple #8
0
 def __init__(self, extended=False):
     self.extended = extended
     BitcoinTestFramework.__init__(self)
 def __init__(self):
     self.nodes = []
     BitcoinTestFramework.__init__(self)
 def __init__(self):
     self.rep = False
     BitcoinTestFramework.__init__(self)
Exemple #11
0
 def __init__(self):
     BitcoinTestFramework.__init__(self)
     # TODO When this asserts, you have probably backported bitcoin#11121, so you'll have to remove this constructor
     assert (not callable(
         getattr(BitcoinTestFramework(), "set_test_params", None)))
     self.set_test_params()
Exemple #12
0
 def __init__(self, build_variant, client_dirs):
     BitcoinTestFramework.__init__(self)
     self.buildVariant = build_variant
     self.clientDirs = client_dirs
     # override the binaries
     self.bins = [ os.path.join(base_dir, x, self.buildVariant, "src","bitcoind") for x in clientDirs]
Exemple #13
0
 def __init__(self,extended=False):
   self.extended = extended
   BitcoinTestFramework.__init__(self)