tfixes for cosignerpool - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 34a4df1114216b57e74a33c8653ef086088e7b47 DIR parent 54df0b2845a37f419ea9e734b7d2fb4b1639ea99 HTML Author: ThomasV <thomasv@electrum.org> Date: Thu, 25 Feb 2016 09:39:01 +0100 fixes for cosignerpool Diffstat: M plugins/cosigner_pool/__init__.py | 2 +- M plugins/cosigner_pool/qt.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) --- DIR diff --git a/plugins/cosigner_pool/__init__.py b/plugins/cosigner_pool/__init__.py t@@ -5,5 +5,5 @@ description = ' '.join([ _("It sends and receives partially signed transactions from/to your cosigner wallet."), _("Transactions are encrypted and stored on a remote server.") ]) -requires_wallet_type = ['2of2', '2of3'] +#requires_wallet_type = ['2of2', '2of3'] available_for = ['qt'] DIR diff --git a/plugins/cosigner_pool/qt.py b/plugins/cosigner_pool/qt.py t@@ -97,6 +97,11 @@ class Plugin(BasePlugin): self.cosigner_list = [] @hook + def init_qt(self, gui): + for window in gui.windows: + self.on_new_window(window) + + @hook def on_new_window(self, window): self.update(window) t@@ -153,7 +158,7 @@ class Plugin(BasePlugin): def cosigner_can_sign(self, tx, cosigner_xpub): from electrum.transaction import x_to_xpub xpub_set = set([]) - for txin in tx.inputs: + for txin in tx.inputs(): for x_pubkey in txin['x_pubkeys']: xpub = x_to_xpub(x_pubkey) if xpub: