1
0

wallet: towards restoring previous performance 2

This commit is contained in:
SomberNight
2019-03-04 18:16:48 +01:00
parent 8ae6ddcc00
commit 514d0ae958
3 changed files with 13 additions and 9 deletions

View File

@@ -607,6 +607,10 @@ class JsonDB(PrintError):
def get_history(self):
return list(self.history.keys())
def is_addr_in_history(self, addr):
# does not mean history is non-empty!
return addr in self.history
@locked
def get_addr_history(self, addr):
return self.history.get(addr, [])