Browse Source

wallet.py: load unverified_tx in __init__

3.2.x
SomberNight 7 years ago
parent
commit
4fed27610a
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 5
      lib/wallet.py

5
lib/wallet.py

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

Loading…
Cancel
Save