network.py 文件源码

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

项目:bptc_wallet 作者: ceddie 项目源码 文件源码
def push_to(self, ip, port) -> None:
        """Push to the specified network address."""

        with self.hashgraph.lock:
            data_string = self.generate_data_string(self.hashgraph.me,
                                                    self.hashgraph.lookup_table,
                                                    filter_members_with_address(self.hashgraph.known_members.values()))

        factory = PushClientFactory(data_string, network=self)

        def push():
            reactor.connectTCP(ip, port, factory)

        threads.blockingCallFromThread(reactor, push)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号