electrum

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

commit 4e87ae9b0f712ce7ea031e864a4a064789533239
parent ac505c3dff10e35093be09431e11534743924053
Author: ThomasV <thomasv@gitorious>
Date:   Fri,  6 Mar 2015 09:00:09 +0100

fix bug with cosignerpool plugin

Diffstat:
Mplugins/cosigner_pool.py | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/plugins/cosigner_pool.py b/plugins/cosigner_pool.py @@ -111,14 +111,12 @@ class Plugin(BasePlugin): if self.listener is None: self.listener = Listener(self) self.listener.start() - mpk = self.wallet.get_master_public_keys() self.cosigner_list = [] - for key, xpub in mpk.items(): - keyname = key + '/' # fixme + for key, xpub in self.wallet.master_public_keys.items(): K = bitcoin.deserialize_xkey(xpub)[-1].encode('hex') _hash = bitcoin.Hash(K).encode('hex') - if self.wallet.master_private_keys.get(keyname): - self.listener.set_key(keyname, _hash) + if self.wallet.master_private_keys.get(key): + self.listener.set_key(key, _hash) else: self.cosigner_list.append((xpub, K, _hash))