mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
fix signature_count in coinbase transactions
This commit is contained in:
parent
f183554446
commit
5f4a28a2bb
1 changed files with 2 additions and 0 deletions
|
@ -674,6 +674,8 @@ class Transaction:
|
||||||
r = 0
|
r = 0
|
||||||
s = 0
|
s = 0
|
||||||
for txin in self.inputs:
|
for txin in self.inputs:
|
||||||
|
if txin.get('is_coinbase'):
|
||||||
|
continue
|
||||||
signatures = filter(lambda x: x is not None, txin['signatures'])
|
signatures = filter(lambda x: x is not None, txin['signatures'])
|
||||||
s += len(signatures)
|
s += len(signatures)
|
||||||
r += txin['num_sig']
|
r += txin['num_sig']
|
||||||
|
|
Loading…
Add table
Reference in a new issue