1
0

small optimisations for history tab refresh (and related)

This commit is contained in:
SomberNight
2018-08-03 16:12:41 +02:00
parent 6b42e8448c
commit 7307c800d7
6 changed files with 29 additions and 18 deletions

View File

@@ -101,6 +101,9 @@ class AddressSynchronizer(PrintError):
h.append((tx_hash, tx_height))
return h
def get_address_history_len(self, addr: str) -> int:
return len(self._history_local.get(addr, ()))
def get_txin_address(self, txi):
addr = txi.get('address')
if addr and addr != "(pubkey)":