Ignore error from txscript.PushedData
This commit is contained in:
parent
12e95e2790
commit
ca65f28ca1
1 changed files with 2 additions and 5 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue