mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 17:01:34 +00:00
fix #2509: reset pubkeys to None when x_pubkeys are unsorted
This commit is contained in:
parent
a7679debd1
commit
7ea2cb41e8
1 changed files with 7 additions and 3 deletions
|
@ -1730,9 +1730,13 @@ class Multisig_Wallet(Deterministic_Wallet, P2SH):
|
||||||
return ''.join(sorted(self.get_master_public_keys()))
|
return ''.join(sorted(self.get_master_public_keys()))
|
||||||
|
|
||||||
def add_input_sig_info(self, txin, address):
|
def add_input_sig_info(self, txin, address):
|
||||||
|
# x_pubkeys are not sorted here because it would be too slow
|
||||||
|
# they are sorted in transaction.get_sorted_pubkeys
|
||||||
|
# pubkeys is set to None to signal that x_pubkeys are unsorted
|
||||||
|
if txin.get('x_pubkeys') is None:
|
||||||
derivation = self.get_address_index(address)
|
derivation = self.get_address_index(address)
|
||||||
# extended pubkeys
|
|
||||||
txin['x_pubkeys'] = [k.get_xpubkey(*derivation) for k in self.get_keystores()]
|
txin['x_pubkeys'] = [k.get_xpubkey(*derivation) for k in self.get_keystores()]
|
||||||
|
txin['pubkeys'] = None
|
||||||
# we need n place holders
|
# we need n place holders
|
||||||
txin['signatures'] = [None] * self.n
|
txin['signatures'] = [None] * self.n
|
||||||
txin['num_sig'] = self.m
|
txin['num_sig'] = self.m
|
||||||
|
|
Loading…
Add table
Reference in a new issue