wallet.py: load unverified_tx in __init__
This commit is contained in:
@@ -216,6 +216,7 @@ class Abstract_Wallet(PrintError):
|
|||||||
self.test_addresses_sanity()
|
self.test_addresses_sanity()
|
||||||
self.load_transactions()
|
self.load_transactions()
|
||||||
self.check_history()
|
self.check_history()
|
||||||
|
self.load_unverified_transactions()
|
||||||
self.load_local_history()
|
self.load_local_history()
|
||||||
self.build_spent_outpoints()
|
self.build_spent_outpoints()
|
||||||
|
|
||||||
@@ -1285,7 +1286,7 @@ class Abstract_Wallet(PrintError):
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def prepare_for_verifier(self):
|
def load_unverified_transactions(self):
|
||||||
# review transactions that are in the history
|
# review transactions that are in the history
|
||||||
for addr, hist in self.history.items():
|
for addr, hist in self.history.items():
|
||||||
for tx_hash, tx_height in hist:
|
for tx_hash, tx_height in hist:
|
||||||
@@ -1294,8 +1295,6 @@ class Abstract_Wallet(PrintError):
|
|||||||
|
|
||||||
def start_threads(self, network):
|
def start_threads(self, network):
|
||||||
self.network = network
|
self.network = network
|
||||||
# prepare self.unverified_tx regardless of network
|
|
||||||
self.prepare_for_verifier()
|
|
||||||
if self.network is not None:
|
if self.network is not None:
|
||||||
self.verifier = SPV(self.network, self)
|
self.verifier = SPV(self.network, self)
|
||||||
self.synchronizer = Synchronizer(self, network)
|
self.synchronizer = Synchronizer(self, network)
|
||||||
|
|||||||
Reference in New Issue
Block a user