From 54bb42f82cefe95b0156fc48255592a6f41b5b7c Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 1 Apr 2023 10:37:38 +0200 Subject: [PATCH] adb: take locks in get_balance. fixes #8200 --- electrum/address_synchronizer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/electrum/address_synchronizer.py b/electrum/address_synchronizer.py index c8c261bdd..ea969efbf 100644 --- a/electrum/address_synchronizer.py +++ b/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]: