Browse Source

follow-up storage/db changes

follow-up b96cc82333
master
SomberNight 2 years ago
parent
commit
7482e275b9
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/gui/qml/qewizard.py
  2. 2
      electrum/gui/qt/installwizard.py
  3. 2
      electrum/plugins/trustedcoin/trustedcoin.py
  4. 2
      electrum/wizard.py

2
electrum/gui/qml/qewizard.py

@ -119,7 +119,7 @@ class QENewWalletWizard(NewWalletWizard, QEAbstractWizard):
self.createSuccess.emit()
except Exception as e:
self._logger.error(f"createStorage errored: {e!r}")
self._logger.exception(f"createStorage errored: {e!r}")
self.createError.emit(str(e))

2
electrum/gui/qt/installwizard.py

@ -393,7 +393,7 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard):
self.run(action)
for k, v in self.data.items():
db.put(k, v)
db.write(storage)
db.write()
return
if db.requires_upgrade():

2
electrum/plugins/trustedcoin/trustedcoin.py

@ -396,7 +396,7 @@ class Wallet_2fa(Multisig_Wallet):
self.db.put('trustedcoin_billing_addresses', self._billing_addresses['legacy'])
self.db.put('trustedcoin_billing_addresses_segwit', self._billing_addresses['segwit'])
# FIXME this often runs in a daemon thread, where storage.write will fail
self.db.write(self.storage)
self.db.write()
def is_billing_address(self, addr: str) -> bool:
return addr in self._billing_addresses_set

2
electrum/wizard.py

@ -469,7 +469,7 @@ class NewWalletWizard(AbstractWizard):
db.put('lightning_xprv', k.get_lightning_xprv(data['password'] if data['encrypt'] else None))
db.load_plugins()
db.write(storage)
db.write()
class ServerConnectWizard(AbstractWizard):

Loading…
Cancel
Save