MCPcopy
hub / github.com/petertodd/python-bitcoinlib / err_raiser

Function err_raiser

bitcoin/core/scripteval.py:382–396  ·  view source on GitHub ↗

Helper function for raising EvalScriptError exceptions cls - subclass you want to raise *args - arguments Fills in the state of execution for you.

(cls, *args)

Source from the content-addressed store, hash-verified

380 fExec = _CheckExec(vfExec)
381
382 def err_raiser(cls, *args):
383 """Helper function for raising EvalScriptError exceptions
384
385 cls - subclass you want to raise
386
387 *args - arguments
388
389 Fills in the state of execution for you.
390 """
391 raise cls(*args,
392 sop=sop,
393 sop_data=sop_data,
394 sop_pc=sop_pc,
395 stack=stack, scriptIn=scriptIn, txTo=txTo, inIdx=inIdx, flags=flags,
396 altstack=altstack, vfExec=vfExec, pbegincodehash=pbegincodehash, nOpCount=nOpCount[0])
397
398
399 if sop in DISABLED_OPCODES:

Callers 6

_CastToBigNumFunction · 0.85
_CheckMultiSigFunction · 0.85
_UnaryOpFunction · 0.85
_BinOpFunction · 0.85
_EvalScriptFunction · 0.85
check_argsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected