AddFullData should not typically be used by ordinary users as it does not include the checks which prevent data pushes larger than the maximum allowed sizes which leads to scripts that can't be executed. This is provided for testing purposes such as regression tests where sizes are intentionally ma
(data []byte)
| 207 | // |
| 208 | // Use AddData instead. |
| 209 | func (b *ScriptBuilder) AddFullData(data []byte) *ScriptBuilder { |
| 210 | if b.err != nil { |
| 211 | return b |
| 212 | } |
| 213 | |
| 214 | return b.addData(data) |
| 215 | } |
| 216 | |
| 217 | // AddData pushes the passed data to the end of the script. It automatically |
| 218 | // chooses canonical opcodes depending on the length of the data. A zero length |