electrum

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

commit f5380b3500be6fa68db2650732ee5f57f7c66c52
parent 3403db9b478e9dab3f7456f78180c030ddbd2916
Author: ThomasV <thomasv@electrum.org>
Date:   Fri,  7 Oct 2016 12:03:49 +0200

fix bugs in sweep dialog

Diffstat:
Mgui/qt/main_window.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -42,6 +42,7 @@ import PyQt4.QtCore as QtCore import icons_rc from electrum.bitcoin import COIN, is_valid, TYPE_ADDRESS +from electrum.keystore import is_private_key from electrum.plugins import run_hook from electrum.i18n import _ from electrum.util import (block_explorer, block_explorer_info, format_time, @@ -2172,7 +2173,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): keys_e.setTabChangesFocus(True) vbox.addWidget(keys_e) - addresses = self.wallet.get_unused_addresses(None) + addresses = self.wallet.get_unused_addresses() h, address_e = address_field(addresses) vbox.addLayout(h) @@ -2188,7 +2189,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): def get_pk(): pk = str(keys_e.toPlainText()).strip() - if Wallet.is_private_key(pk): + if is_private_key(pk): return pk.split() f = lambda: button.setEnabled(get_address() is not None and get_pk() is not None)