Browse Source

trustedcoin: do not db.write() from daemon thread. fixes #8791

master
ThomasV 2 years ago
parent
commit
d6c45113e4
  1. 2
      electrum/plugins/trustedcoin/trustedcoin.py

2
electrum/plugins/trustedcoin/trustedcoin.py

@ -393,8 +393,6 @@ class Wallet_2fa(Multisig_Wallet):
self._billing_addresses[addr_type] = billing_addresses_of_this_type
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()
def is_billing_address(self, addr: str) -> bool:
return addr in self._billing_addresses_set

Loading…
Cancel
Save