MCPcopy
hub / github.com/btcsuite/btcd / scriptError

Function scriptError

txscript/error.go:539–541  ·  view source on GitHub ↗

scriptError creates an Error given a set of arguments.

(c ErrorCode, desc string)

Source from the content-addressed store, hash-verified

537
538// scriptError creates an Error given a set of arguments.
539func scriptError(c ErrorCode, desc string) Error {
540 return Error{ErrorCode: c, Description: desc}
541}
542
543// IsErrorCode returns whether or not the provided error is a script error with
544// the provided error code.

Callers 15

tallysigOpMethod · 0.85
checkMinimalDataPushFunction · 0.85
executeOpcodeMethod · 0.85
checkValidPCMethod · 0.85
verifyWitnessProgramMethod · 0.85
DisasmPCMethod · 0.85
DisasmScriptMethod · 0.85
CheckErrorConditionMethod · 0.85
StepMethod · 0.85
checkHashTypeEncodingMethod · 0.85
checkPubKeyEncodingMethod · 0.85

Calls

no outgoing calls

Tested by 10

TestMakeScriptNumFunction · 0.68
TestStackFunction · 0.68
TestRemoveOpcodesFunction · 0.68
TestRemoveOpcodeByDataFunction · 0.68
TestCalcScriptInfoFunction · 0.68
TestPayToAddrScriptFunction · 0.68
TestMultiSigScriptFunction · 0.68
TestCalcMultiSigStatsFunction · 0.68
TestNullDataScriptFunction · 0.68
TestScriptTokenizerFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…