tfix bug with cosignerpool plugin - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 4e87ae9b0f712ce7ea031e864a4a064789533239 DIR parent ac505c3dff10e35093be09431e11534743924053 HTML Author: ThomasV <thomasv@gitorious> Date: Fri, 6 Mar 2015 09:00:09 +0100 fix bug with cosignerpool plugin Diffstat: M plugins/cosigner_pool.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) --- DIR diff --git a/plugins/cosigner_pool.py b/plugins/cosigner_pool.py t@@ -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))