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
}
data, err := txscript.PushedData(script)
if err != nil {
b.err = err
return b
}
// Ignore errors and add pushed data, if any
data, _ := txscript.PushedData(script)
return b.AddEntries(data)
}