Browse Source
wallet: generate addresses in Deterministic_Wallet constructor
sqlite_db
SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
2 changed files with
3 additions and
8 deletions
-
electrum/base_wizard.py
-
electrum/wallet.py
|
|
@ -621,11 +621,3 @@ class BaseWizard(object): |
|
|
|
self.line_dialog(run_next=f, title=title, message=message, default='', test=lambda x: x==passphrase) |
|
|
|
else: |
|
|
|
f('') |
|
|
|
|
|
|
|
def create_addresses(self): |
|
|
|
def task(): |
|
|
|
self.wallet.synchronize() |
|
|
|
self.wallet.storage.write() |
|
|
|
self.terminate() |
|
|
|
msg = _("Electrum is generating your addresses, please wait...") |
|
|
|
self.waiting_dialog(task, msg) |
|
|
|
|
|
@ -1506,6 +1506,9 @@ class Deterministic_Wallet(Abstract_Wallet): |
|
|
|
def __init__(self, storage): |
|
|
|
Abstract_Wallet.__init__(self, storage) |
|
|
|
self.gap_limit = storage.get('gap_limit', 20) |
|
|
|
# generate addresses now. note that without libsecp this might block |
|
|
|
# for a few seconds! |
|
|
|
self.synchronize() |
|
|
|
|
|
|
|
def has_seed(self): |
|
|
|
return self.keystore.has_seed() |
|
|
|