def __init__(self, factory):
self.tc = TrustChain()
self.factory = factory
self.collect_rubbish_lc = task.LoopingCall(self._collect_rubbish)
self.collect_rubbish_lc.start(5, False).addErrback(my_err_back)
self.log_tx_count_lc = task.LoopingCall(self._log_info)
self.log_tx_count_lc.start(5, False).addErrback(my_err_back)
self.bootstrap_lc = None
self.random_node_for_tx = False
# attributes below are states for building new CP blocks
self.round_states = defaultdict(RoundState)
self._initial_promoters = []
random.seed()
评论列表
文章目录