trm dead code: wallet.wait_until_synchronized - electrum - Electrum Bitcoin wallet (HTM) git clone https://git.parazyd.org/electrum (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules --- (DIR) commit e2544b893a401128bc28678cf463694418ad65d1 (DIR) parent 312ef15cd612a8235cf7be29dcf6f3b8a11b0ab7 (HTM) Author: ThomasV <thomasv@electrum.org> Date: Sat, 11 Apr 2020 15:26:29 +0200 rm dead code: wallet.wait_until_synchronized Diffstat: M electrum/wallet.py | 27 --------------------------- 1 file changed, 0 insertions(+), 27 deletions(-) --- (DIR) diff --git a/electrum/wallet.py b/electrum/wallet.py t@@ -1170,33 +1170,6 @@ class Abstract_Wallet(AddressSynchronizer, ABC): self.frozen_coins -= set(utxos) self.db.put('frozen_coins', list(self.frozen_coins)) - def wait_until_synchronized(self, callback=None): - def wait_for_wallet(): - self.set_up_to_date(False) - while not self.is_up_to_date(): - if callback: - msg = "{}\n{} {}".format( - _("Please wait..."), - _("Addresses generated:"), - len(self.get_addresses())) - callback(msg) - time.sleep(0.1) - def wait_for_network(): - while not self.network.is_connected(): - if callback: - msg = "{} \n".format(_("Connecting...")) - callback(msg) - time.sleep(0.1) - # wait until we are connected, because the user - # might have selected another server - if self.network: - self.logger.info("waiting for network...") - wait_for_network() - self.logger.info("waiting while wallet is syncing...") - wait_for_wallet() - else: - self.synchronize() - def can_export(self): return not self.is_watching_only() and hasattr(self.keystore, 'get_private_key')