mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
cosigner pool: easy fix (works but with worse than previous behaviour)
got broken as part of PSBT changes in #5721
This commit is contained in:
parent
4313bde4c2
commit
34392e82b9
1 changed files with 4 additions and 6 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue