Ignore error from txscript.PushedData

This commit is contained in:
Alex 2017-02-02 12:17:25 -07:00 committed by Olaoluwa Osuntokun
parent 12e95e2790
commit ca65f28ca1

View file

@ -188,11 +188,8 @@ func (b *GCSBuilder) AddScript(script []byte) *GCSBuilder {
return b return b
} }
data, err := txscript.PushedData(script) // Ignore errors and add pushed data, if any
if err != nil { data, _ := txscript.PushedData(script)
b.err = err
return b
}
return b.AddEntries(data) return b.AddEntries(data)
} }