Exception
KernelException
ProcessBlockException
Bases: KernelException
Raised when ChainstateManager fails to process a block.
Source code in pbk/exceptions.py
__init__
Create a block processing exception.
| PARAMETER | DESCRIPTION |
|---|---|
code
|
The error code returned by the C API.
TYPE:
|
ProcessBlockHeaderException
Bases: KernelException
Raised when ChainstateManager fails to process a block header.
Source code in pbk/exceptions.py
ScriptVerifyException
Bases: KernelException
Exception raised when script verification cannot run.
This exception is raised by the ScriptPubkey.verify
function when its arguments do not allow a verification, e.g. when the
flags are combined in an invalid way. A script that does not pass
validation does not raise; verify returns False for it. The exception
includes a status code that tells why the verification could not run.
| ATTRIBUTE | DESCRIPTION |
|---|---|
status |
The status code indicating the failure reason.
TYPE:
|
Source code in pbk/script.py
__init__
Create a script verification exception.
| PARAMETER | DESCRIPTION |
|---|---|
status
|
The verification status code indicating the failure reason.
TYPE:
|