MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / EvalScriptError

Class EvalScriptError

bitcoin/core/scripteval.py:59–83  ·  view source on GitHub ↗

Base class for exceptions raised when a script fails during EvalScript() The execution state just prior the opcode raising the is saved. (if available)

Source from the content-addressed store, hash-verified

57}
58
59class EvalScriptError(bitcoin.core.ValidationError):
60 """Base class for exceptions raised when a script fails during EvalScript()
61
62 The execution state just prior the opcode raising the is saved. (if
63 available)
64 """
65 def __init__(self,
66 msg,
67 sop=None, sop_data=None, sop_pc=None,
68 stack=None, scriptIn=None, txTo=None, inIdx=None, flags=None,
69 altstack=None, vfExec=None, pbegincodehash=None, nOpCount=None):
70 super(EvalScriptError, self).__init__('EvalScript: %s' % msg)
71
72 self.sop = sop
73 self.sop_data = sop_data
74 self.sop_pc = sop_pc
75 self.stack = stack
76 self.scriptIn = scriptIn
77 self.txTo = txTo
78 self.inIdx = inIdx
79 self.flags = flags
80 self.altstack = altstack
81 self.vfExec = vfExec
82 self.pbegincodehash = pbegincodehash
83 self.nOpCount = nOpCount
84
85class MaxOpCountError(EvalScriptError):
86 def __init__(self, **kwargs):

Callers 2

_EvalScriptFunction · 0.85
EvalScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected