storage = WalletStorage(self.config)
if not storage.file_exists:
import installwizard
- wizard = installwizard.InstallWizard(self.config, self.interface, storage)
+ wizard = installwizard.InstallWizard(self.config, self.interface, self.blockchain, storage)
wallet = wizard.run()
if not wallet:
exit()
import PyQt4.QtCore as QtCore
from i18n import _
-from electrum import Wallet, mnemonic, WalletVerifier, WalletSynchronizer
+from electrum import Wallet, mnemonic
from seed_dialog import SeedDialog
from network_dialog import NetworkDialog
class InstallWizard(QDialog):
- def __init__(self, config, interface, storage):
+ def __init__(self, config, interface, blockchain, storage):
QDialog.__init__(self)
self.config = config
self.interface = interface
+ self.blockchain = blockchain
self.storage = storage
if not a: exit()
wallet = Wallet(self.storage)
- wallet.interface = self.interface
if a =='create':
wallet.init_seed(None)
#self.interface.start(wait = False)
# start wallet threads
- verifier = WalletVerifier(self.interface, self.storage)
- verifier.start()
- wallet.set_verifier(verifier)
- synchronizer = WalletSynchronizer(wallet)
- synchronizer.start()
+ wallet.start_threads(self.interface, self.blockchain)
# generate the first addresses, in case we are offline
requested_headers.remove(result.get('block_height'))
else:
self.height = result.get('block_height')
- self.interface.poke('synchronizer')
+ ## fixme # self.interface.poke('synchronizer')
self.pending_headers.sort(key=lambda x: x.get('block_height'))
# print "pending headers", map(lambda x: x.get('block_height'), self.pending_headers)