MCPcopy Index your code
hub / github.com/btcsuite/btcd / AddFullData

Method AddFullData

txscript/scriptbuilder.go:209–215  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

207//
208// Use AddData instead.
209func (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

Callers 5

TestErroredScriptFunction · 0.95
parseShortFormFunction · 0.95
TestScriptBuilderAddDataFunction · 0.80
TestExceedMaxScriptSizeFunction · 0.80

Calls 1

addDataMethod · 0.95

Tested by 5

TestErroredScriptFunction · 0.76
parseShortFormFunction · 0.76
TestScriptBuilderAddDataFunction · 0.64
TestExceedMaxScriptSizeFunction · 0.64