electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit d0fa3b431a6d7ef3d7560c87606f116b328173cf
parent 7b9047d8d6a0c78798f5d94f0fc17cb79b2a84cd
Author: SomberNight <somber.night@protonmail.com>
Date:   Thu, 28 Feb 2019 21:22:10 +0100

wallet: generate addresses in Deterministic_Wallet constructor

Diffstat:
Melectrum/base_wizard.py | 8--------
Melectrum/wallet.py | 3+++
2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/electrum/base_wizard.py b/electrum/base_wizard.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) diff --git a/electrum/wallet.py b/electrum/wallet.py @@ -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()