Base class for exceptions raised when a script fails during EvalScript() The execution state just prior the opcode raising the is saved. (if available)
| 57 | } |
| 58 | |
| 59 | class 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 | |
| 85 | class MaxOpCountError(EvalScriptError): |
| 86 | def __init__(self, **kwargs): |
no outgoing calls
no test coverage detected