mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
serialize: do not use x_pubkeys if we have enough signatures.
This commit is contained in:
parent
785b54f8f4
commit
3f15a8f217
1 changed files with 6 additions and 2 deletions
|
@ -540,8 +540,12 @@ class Transaction:
|
||||||
sig_list.append(NO_SIGNATURE)
|
sig_list.append(NO_SIGNATURE)
|
||||||
sig_list = ''.join( map( lambda x: push_script(x), sig_list))
|
sig_list = ''.join( map( lambda x: push_script(x), sig_list))
|
||||||
|
|
||||||
|
if len(signatures) < n_sig:
|
||||||
# extended pubkeys (with bip32 derivation)
|
# extended pubkeys (with bip32 derivation)
|
||||||
x_pubkeys = txin['x_pubkeys']
|
x_pubkeys = txin['x_pubkeys']
|
||||||
|
else:
|
||||||
|
# if we have enough signatures, we use the actual pubkeys
|
||||||
|
x_pubkeys = txin['pubkeys']
|
||||||
|
|
||||||
if not p2sh:
|
if not p2sh:
|
||||||
script = sig_list
|
script = sig_list
|
||||||
|
|
Loading…
Add table
Reference in a new issue