fix bug with cosignerpool plugin
This commit is contained in:
@@ -111,14 +111,12 @@ class Plugin(BasePlugin):
|
|||||||
if self.listener is None:
|
if self.listener is None:
|
||||||
self.listener = Listener(self)
|
self.listener = Listener(self)
|
||||||
self.listener.start()
|
self.listener.start()
|
||||||
mpk = self.wallet.get_master_public_keys()
|
|
||||||
self.cosigner_list = []
|
self.cosigner_list = []
|
||||||
for key, xpub in mpk.items():
|
for key, xpub in self.wallet.master_public_keys.items():
|
||||||
keyname = key + '/' # fixme
|
|
||||||
K = bitcoin.deserialize_xkey(xpub)[-1].encode('hex')
|
K = bitcoin.deserialize_xkey(xpub)[-1].encode('hex')
|
||||||
_hash = bitcoin.Hash(K).encode('hex')
|
_hash = bitcoin.Hash(K).encode('hex')
|
||||||
if self.wallet.master_private_keys.get(keyname):
|
if self.wallet.master_private_keys.get(key):
|
||||||
self.listener.set_key(keyname, _hash)
|
self.listener.set_key(key, _hash)
|
||||||
else:
|
else:
|
||||||
self.cosigner_list.append((xpub, K, _hash))
|
self.cosigner_list.append((xpub, K, _hash))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user