예제 #1
0
 def __init__(self, testgen, datadir):
     self.test_generator = testgen
     self.connections = []
     self.test_nodes = []
     self.block_store = BlockStore(datadir)
     self.tx_store = TxStore(datadir)
     self.ping_counter = 1
예제 #2
0
 def __init__(self):
     self.config = config.config()
     self.meta = BlockStore(self.config['tinyimages']['metapath'], 768)
     self.data = BlockStore(self.config['tinyimages']['datapath'], 3072)
     self.img_count = 79302017