updates for python3
This commit is contained in:
@@ -36,6 +36,7 @@ from electrum import transaction
|
||||
from electrum.plugins import BasePlugin, hook
|
||||
from electrum.i18n import _
|
||||
from electrum.wallet import Multisig_Wallet
|
||||
from electrum.util import bh2u
|
||||
|
||||
from electrum_gui.qt.transaction_dialog import show_transaction
|
||||
|
||||
@@ -129,8 +130,8 @@ class Plugin(BasePlugin):
|
||||
self.cosigner_list = []
|
||||
for key, keystore in wallet.keystores.items():
|
||||
xpub = keystore.get_master_public_key()
|
||||
K = bitcoin.deserialize_xpub(xpub)[-1].encode('hex')
|
||||
_hash = bitcoin.Hash(K).encode('hex')
|
||||
K = bitcoin.deserialize_xpub(xpub)[-1]
|
||||
_hash = bh2u(bitcoin.Hash(K))
|
||||
if not keystore.is_watching_only():
|
||||
self.keys.append((key, _hash, window))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user