Browse Source

adb: take locks in get_balance. fixes #8200

master
ThomasV 3 years ago
parent
commit
54bb42f82c
  1. 2
      electrum/address_synchronizer.py

2
electrum/address_synchronizer.py

@ -817,6 +817,8 @@ class AddressSynchronizer(Logger, EventListener):
received, sent = self.get_addr_io(address)
return sum([value for height, pos, value, is_cb in received.values()])
@with_lock
@with_transaction_lock
@with_local_height_cached
def get_balance(self, domain, *, excluded_addresses: Set[str] = None,
excluded_coins: Set[str] = None) -> Tuple[int, int, int]:

Loading…
Cancel
Save