fixes for cosignerpool
This commit is contained in:
@@ -5,5 +5,5 @@ description = ' '.join([
|
|||||||
_("It sends and receives partially signed transactions from/to your cosigner wallet."),
|
_("It sends and receives partially signed transactions from/to your cosigner wallet."),
|
||||||
_("Transactions are encrypted and stored on a remote server.")
|
_("Transactions are encrypted and stored on a remote server.")
|
||||||
])
|
])
|
||||||
requires_wallet_type = ['2of2', '2of3']
|
#requires_wallet_type = ['2of2', '2of3']
|
||||||
available_for = ['qt']
|
available_for = ['qt']
|
||||||
|
|||||||
@@ -96,6 +96,11 @@ class Plugin(BasePlugin):
|
|||||||
self.keys = []
|
self.keys = []
|
||||||
self.cosigner_list = []
|
self.cosigner_list = []
|
||||||
|
|
||||||
|
@hook
|
||||||
|
def init_qt(self, gui):
|
||||||
|
for window in gui.windows:
|
||||||
|
self.on_new_window(window)
|
||||||
|
|
||||||
@hook
|
@hook
|
||||||
def on_new_window(self, window):
|
def on_new_window(self, window):
|
||||||
self.update(window)
|
self.update(window)
|
||||||
@@ -153,7 +158,7 @@ class Plugin(BasePlugin):
|
|||||||
def cosigner_can_sign(self, tx, cosigner_xpub):
|
def cosigner_can_sign(self, tx, cosigner_xpub):
|
||||||
from electrum.transaction import x_to_xpub
|
from electrum.transaction import x_to_xpub
|
||||||
xpub_set = set([])
|
xpub_set = set([])
|
||||||
for txin in tx.inputs:
|
for txin in tx.inputs():
|
||||||
for x_pubkey in txin['x_pubkeys']:
|
for x_pubkey in txin['x_pubkeys']:
|
||||||
xpub = x_to_xpub(x_pubkey)
|
xpub = x_to_xpub(x_pubkey)
|
||||||
if xpub:
|
if xpub:
|
||||||
|
|||||||
Reference in New Issue
Block a user