trustchain_runner.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:checo 作者: kc1212 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号