addr_sync: get_balance change cache_key to have delimiters
re https://github.com/spesmilo/electrum/pull/7807/files#r870482609
This commit is contained in:
@@ -855,7 +855,8 @@ class AddressSynchronizer(Logger):
|
|||||||
excluded_coins = set()
|
excluded_coins = set()
|
||||||
assert isinstance(excluded_coins, set), f"excluded_coins should be set, not {type(excluded_coins)}"
|
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)
|
cached_value = self._get_balance_cache.get(cache_key)
|
||||||
if cached_value:
|
if cached_value:
|
||||||
return cached_value
|
return cached_value
|
||||||
|
|||||||
Reference in New Issue
Block a user