From c01c00e8b49444d80cfa0a0e560b335dfc9a2812 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 27 Apr 2017 20:37:21 -0700 Subject: [PATCH] gcs: check to see if sigScript exists before adding it --- gcs/builder/builder.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcs/builder/builder.go b/gcs/builder/builder.go index 63afad3..71bb69f 100644 --- a/gcs/builder/builder.go +++ b/gcs/builder/builder.go @@ -328,7 +328,9 @@ func BuildExtFilter(block *wire.MsgBlock) (*gcs.Filter, error) { // Skip the inputs for the coinbase transaction if i != 0 { for _, txIn := range tx.TxIn { - b.AddScript(txIn.SignatureScript) + if txIn.SignatureScript != nil { + b.AddScript(txIn.SignatureScript) + } } } }