ProcessManager.py 文件源码

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

项目:SumoGUIWallet 作者: sumoprojects 项目源码 文件源码
def __init__(self, resources_path, wallet_file_path, wallet_password, app, log_level=2):
        self.user_agent = str(uuid4().hex)
        wallet_log_path = os.path.join(os.path.dirname(wallet_file_path), "sumo-wallet-rpc.log")
        wallet_rpc_args = u'%s/bin/sumo-wallet-rpc --wallet-file %s --log-file %s --rpc-bind-port 19736 --user-agent %s --log-level %d' \
                                            % (resources_path, wallet_file_path, wallet_log_path, self.user_agent, log_level)

        ProcessManager.__init__(self, wallet_rpc_args, "sumo-wallet-rpc")
        sleep(0.2)
        self.send_command(wallet_password)

        self.rpc_request = WalletRPCRequest(app, self.user_agent)
#         self.rpc_request.start()
        self.ready = False
        self.block_hex = None
        self.block_height = 0
        self.is_password_invalid = Event()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号