From 34392e82b96fb44b337d991c6cb2eb5386c999b4 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Fri, 7 Feb 2020 20:09:40 +0100 Subject: [PATCH] cosigner pool: easy fix (works but with worse than previous behaviour) got broken as part of PSBT changes in #5721 --- electrum/plugins/cosigner_pool/qt.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/electrum/plugins/cosigner_pool/qt.py b/electrum/plugins/cosigner_pool/qt.py index 127df4fee..61658f258 100644 --- a/electrum/plugins/cosigner_pool/qt.py +++ b/electrum/plugins/cosigner_pool/qt.py @@ -164,12 +164,10 @@ class Plugin(BasePlugin): d.cosigner_send_button.setVisible(False) def cosigner_can_sign(self, tx: Transaction, cosigner_xpub: str) -> bool: - if not isinstance(tx, PartialTransaction): - return False - if tx.is_complete(): - return False - # TODO this is broken currently as it assumes tx.xpubs - return cosigner_xpub in {bip32node.to_xpub() for bip32node in tx.xpubs} + # TODO implement this properly: + # should return True iff cosigner (with given xpub) can sign and has not yet signed. + # note that tx could also be unrelated from wallet?... (not ismine inputs) + return True def do_send(self, tx: Union[Transaction, PartialTransaction]): def on_success(result):