wallet: follow-up prev

This commit is contained in:
SomberNight 2019-07-03 13:40:42 +02:00
parent 37e7add776
commit d293b2e038
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9
2 changed files with 6 additions and 1 deletions

View file

@ -39,6 +39,7 @@ from .logging import Logger
if TYPE_CHECKING:
from .network import Network
from .json_db import JsonDB
TX_HEIGHT_LOCAL = -2
@ -59,7 +60,7 @@ class AddressSynchronizer(Logger):
inherited by wallet
"""
def __init__(self, db):
def __init__(self, db: JsonDB):
self.db = db
self.network = None # type: Network
Logger.__init__(self)

View file

@ -243,6 +243,10 @@ class Abstract_Wallet(AddressSynchronizer):
super().set_up_to_date(b)
if b: self.storage.write()
def clear_history(self):
super().clear_history()
self.storage.write()
def load_and_cleanup(self):
self.load_keystore()
self.test_addresses_sanity()