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
|
||||
if i != 0 {
|
||||
for _, txIn := range tx.TxIn {
|
||||
if txIn.SignatureScript != nil {
|
||||
b.AddScript(txIn.SignatureScript)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return b.Build()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue