mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
fix wallet.check_history
This commit is contained in:
parent
7ab9fa5be4
commit
d09138446f
1 changed files with 8 additions and 3 deletions
|
@ -272,10 +272,15 @@ class Abstract_Wallet(PrintError):
|
|||
@profiler
|
||||
def check_history(self):
|
||||
save = False
|
||||
mine_addrs = list(filter(lambda k: self.is_mine(self.history[k]), self.history.keys()))
|
||||
if len(mine_addrs) != len(self.history.keys()):
|
||||
|
||||
hist_addrs_mine = list(filter(lambda k: self.is_mine(k), self.history.keys()))
|
||||
hist_addrs_not_mine = list(filter(lambda k: not self.is_mine(k), self.history.keys()))
|
||||
|
||||
for addr in hist_addrs_not_mine:
|
||||
self.history.pop(addr)
|
||||
save = True
|
||||
for addr in mine_addrs:
|
||||
|
||||
for addr in hist_addrs_mine:
|
||||
hist = self.history[addr]
|
||||
|
||||
for tx_hash, tx_height in hist:
|
||||
|
|
Loading…
Add table
Reference in a new issue