gcs/builder: ignore scripts with no data pushes
This commit is contained in:
parent
b3d8578868
commit
65172ea539
1 changed files with 4 additions and 0 deletions
|
@ -191,6 +191,10 @@ func (b *GCSBuilder) AddScript(script []byte) *GCSBuilder {
|
|||
|
||||
// Ignore errors and add pushed data, if any
|
||||
data, _ := txscript.PushedData(script)
|
||||
if len(data) == 0 {
|
||||
return b
|
||||
}
|
||||
|
||||
return b.AddEntries(data)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue