MCPcopy Create free account
hub / github.com/btcsuite/btcd / Reset

Method Reset

txscript/scriptbuilder.go:286–290  ·  view source on GitHub ↗

Reset resets the script so it has no content.

()

Source from the content-addressed store, hash-verified

284
285// Reset resets the script so it has no content.
286func (b *ScriptBuilder) Reset() *ScriptBuilder {
287 b.script = b.script[0:0]
288 b.err = nil
289 return b
290}
291
292// Script returns the currently built script. When any errors occurred while
293// building the script, the script will be returned up the point of the first

Callers 12

TestScriptBuilderAddOpFunction · 0.95
TestScriptBuilderAddDataFunction · 0.95
TestExceedMaxScriptSizeFunction · 0.95
TestErroredScriptFunction · 0.95
rebroadcastHandlerMethod · 0.45
upnpUpdateThreadMethod · 0.45
handleGetHeadersFunction · 0.45
inHandlerMethod · 0.45
TestPsbtCreatorFunction · 0.45
TestBlockHeaderWireFunction · 0.45

Calls

no outgoing calls

Tested by 8

TestScriptBuilderAddOpFunction · 0.76
TestScriptBuilderAddDataFunction · 0.76
TestExceedMaxScriptSizeFunction · 0.76
TestErroredScriptFunction · 0.76
TestPsbtCreatorFunction · 0.36
TestBlockHeaderWireFunction · 0.36