joinmarket-qt.py 文件源码

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

项目:joinmarket-clientserver 作者: JoinMarket-Org 项目源码 文件源码
def syncWalletUpdate(self, fast, restart_cb=None):
        if restart_cb:
            fast=False
        #Special syncing condition for Electrum
        iselectrum = jm_single().config.get("BLOCKCHAIN",
                            "blockchain_source") == "electrum-server"
        if iselectrum:
            jm_single().bc_interface.synctype = "with-script"

        jm_single().bc_interface.sync_wallet(self.wallet, fast=fast,
                                             restart_cb=restart_cb)

        if iselectrum:
            #sync_wallet only initialises, we must manually call its entry
            #point here (because we can't use connectionMade as a trigger)
            jm_single().bc_interface.sync_addresses(self.wallet)
            self.wait_for_sync_loop = task.LoopingCall(self.updateWalletInfo)
            self.wait_for_sync_loop.start(0.2)
        else:
            self.updateWalletInfo()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号