mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
wallet: follow-up prev
This commit is contained in:
parent
37e7add776
commit
d293b2e038
2 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue