mirror of
https://github.com/LBRYFoundation/lbcutil.git
synced 2025-08-23 17:47:30 +00:00
gcs: check to see if sigScript exists before adding it
This commit is contained in:
parent
0830c7046f
commit
c01c00e8b4
1 changed files with 3 additions and 1 deletions
|
@ -328,10 +328,12 @@ func BuildExtFilter(block *wire.MsgBlock) (*gcs.Filter, error) {
|
||||||
// Skip the inputs for the coinbase transaction
|
// Skip the inputs for the coinbase transaction
|
||||||
if i != 0 {
|
if i != 0 {
|
||||||
for _, txIn := range tx.TxIn {
|
for _, txIn := range tx.TxIn {
|
||||||
|
if txIn.SignatureScript != nil {
|
||||||
b.AddScript(txIn.SignatureScript)
|
b.AddScript(txIn.SignatureScript)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return b.Build()
|
return b.Build()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue