Browse Source

addr_sync: get_balance change cache_key to have delimiters

re https://github.com/spesmilo/electrum/pull/7807/files#r870482609
patch-4
SomberNight 3 years ago
parent
commit
d499dde811
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 3
      electrum/address_synchronizer.py

3
electrum/address_synchronizer.py

@ -855,7 +855,8 @@ class AddressSynchronizer(Logger):
excluded_coins = set()
assert isinstance(excluded_coins, set), f"excluded_coins should be set, not {type(excluded_coins)}"
cache_key = sha256(''.join(sorted(domain)) + ''.join(excluded_coins))
cache_key = sha256(','.join(sorted(domain)) + ';'
+ ','.join(sorted(excluded_coins)))
cached_value = self._get_balance_cache.get(cache_key)
if cached_value:
return cached_value

Loading…
Cancel
Save