gcs/builder: revert recursion of push datas in p2sh/witness
This commit is contained in:
parent
54b6d534d2
commit
9da482119c
1 changed files with 2 additions and 15 deletions
|
@ -195,14 +195,7 @@ func (b *GCSBuilder) AddScript(script []byte) *GCSBuilder {
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
b.AddEntries(data)
|
return b.AddEntries(data)
|
||||||
|
|
||||||
// Recurse into each pushed datum and attempt to add it as a script.
|
|
||||||
for _, datum := range data {
|
|
||||||
b.AddScript(datum)
|
|
||||||
}
|
|
||||||
|
|
||||||
return b
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddWitness adds each item of the passed filter stack to the filter, and then
|
// AddWitness adds each item of the passed filter stack to the filter, and then
|
||||||
|
@ -213,13 +206,7 @@ func (b *GCSBuilder) AddWitness(witness wire.TxWitness) *GCSBuilder {
|
||||||
return b
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
b.AddEntries(witness)
|
return b.AddEntries(witness)
|
||||||
|
|
||||||
for _, script := range witness {
|
|
||||||
b.AddScript(script)
|
|
||||||
}
|
|
||||||
|
|
||||||
return b
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build returns a function which builds a GCS filter with the given parameters
|
// Build returns a function which builds a GCS filter with the given parameters
|
||||||
|
|
Loading…
Reference in a new issue