electrum

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

commit 2e1d24939ccb46123974f3338963a65191883981
parent b5b5edbee7c84132c2cf77a4cbd649c6d6cad305
Author: ThomasV <thomasv@gitorious>
Date:   Sun,  6 Jul 2014 22:24:09 +0200

rm duplicate method getpubkey

Diffstat:
Mgui/qt/main_window.py | 2+-
Mlib/commands.py | 2+-
Mlib/wallet.py | 7-------
3 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -1987,7 +1987,7 @@ class ElectrumWindow(QMainWindow): pubkey_e = QLineEdit() if address: - pubkey = self.wallet.getpubkeys(address)[0] + pubkey = self.wallet.get_public_keys(address)[0] pubkey_e.setText(pubkey) layout.addWidget(QLabel(_('Public key')), 2, 0) layout.addWidget(pubkey_e, 2, 1) diff --git a/lib/commands.py b/lib/commands.py @@ -207,7 +207,7 @@ class Commands: def getpubkeys(self, addr): out = { 'address':addr } - out['pubkeys'] = self.wallet.getpubkeys(addr) + out['pubkeys'] = self.wallet.get_public_keys(addr) return out def getbalance(self, account= None): diff --git a/lib/wallet.py b/lib/wallet.py @@ -354,12 +354,6 @@ class Abstract_Wallet: raise Exception("Address not found", address) - def getpubkeys(self, addr): - assert is_address(addr) and self.is_mine(addr) - account, sequence = self.get_address_index(addr) - a = self.accounts[account] - return a.get_pubkeys( sequence ) - def get_private_key(self, address, password): if self.is_watching_only(): return [] @@ -386,7 +380,6 @@ class Abstract_Wallet: mpk = [ self.master_public_keys[k] for k in self.master_private_keys.keys() ] for xpub, sequence in xpub_list: if xpub in mpk: - print "can sign", xpub return True return False