mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
psbt: only include xpubs for multisig wallets
This commit is contained in:
parent
90b190bbcd
commit
1017fefdc9
1 changed files with 5 additions and 1 deletions
|
@ -1744,7 +1744,11 @@ class PartialTransaction(Transaction):
|
|||
if self.is_complete():
|
||||
return
|
||||
only_der_suffix = not include_xpubs_and_full_paths
|
||||
if include_xpubs_and_full_paths:
|
||||
# only include xpubs for multisig wallets; currently only they need it in practice,
|
||||
# and also the coldcard fw have a limitation that if they are included then all
|
||||
# inputs are assumed to be multisig... https://github.com/spesmilo/electrum/pull/5440#issuecomment-549504761
|
||||
from .wallet import Multisig_Wallet
|
||||
if include_xpubs_and_full_paths and isinstance(wallet, Multisig_Wallet):
|
||||
from .keystore import Xpub
|
||||
for ks in wallet.get_keystores():
|
||||
if isinstance(ks, Xpub):
|
||||
|
|
Loading…
Add table
Reference in a new issue