16 return "Script evaluated without error but finished with a false/empty top stack element";
18 return "Script failed an OP_VERIFY operation";
20 return "Script failed an OP_EQUALVERIFY operation";
22 return "Script failed OP_EXCHANGEADDR operation";
24 return "Script failed an OP_CHECKCOLDSTAKEVERIFY operation";
26 return "Script failed an OP_CHECKMULTISIGVERIFY operation";
28 return "Script failed an OP_CHECKSIGVERIFY operation";
30 return "Script failed an OP_NUMEQUALVERIFY operation";
32 return "Script is too big";
34 return "Push value size limit exceeded";
36 return "Operation limit exceeded";
38 return "Stack size limit exceeded";
40 return "Signature count negative or greater than pubkey count";
42 return "Pubkey count negative or limit exceeded";
44 return "Opcode missing or not understood";
46 return "Attempted to use a disabled opcode";
48 return "Operation not valid with the current stack size";
50 return "Operation not valid with the current altstack size";
52 return "OP_RETURN was encountered";
54 return "Invalid OP_IF construction";
56 return "Negative locktime";
58 return "Locktime requirement not satisfied";
60 return "Signature hash type missing or not understood";
62 return "Non-canonical DER signature";
64 return "Data push larger than necessary";
66 return "Only non-push operators allowed in signatures";
68 return "Non-canonical signature: S value is unnecessarily high";
70 return "Dummy CHECKMULTISIG argument must be zero";
72 return "NOPx reserved for soft-fork upgrades";
74 return "Public key is neither compressed or uncompressed";
79 return "unknown error";
const char * ScriptErrorString(const ScriptError serror)
enum ScriptError_t ScriptError
@ SCRIPT_ERR_SIG_PUSHONLY
@ SCRIPT_ERR_NUMEQUALVERIFY
@ SCRIPT_ERR_DISABLED_OPCODE
@ SCRIPT_ERR_INVALID_ALTSTACK_OPERATION
@ SCRIPT_ERR_EXCHANGEADDRVERIFY
@ SCRIPT_ERR_UNKNOWN_ERROR
@ SCRIPT_ERR_SIG_HASHTYPE
@ SCRIPT_ERR_CHECKCOLDSTAKEVERIFY
@ SCRIPT_ERR_CHECKSIGVERIFY
@ SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS
@ SCRIPT_ERR_INVALID_STACK_OPERATION
@ SCRIPT_ERR_NEGATIVE_LOCKTIME
@ SCRIPT_ERR_SIG_NULLDUMMY
@ SCRIPT_ERR_CHECKMULTISIGVERIFY
@ SCRIPT_ERR_UNSATISFIED_LOCKTIME
@ SCRIPT_ERR_PUBKEY_COUNT
@ SCRIPT_ERR_UNBALANCED_CONDITIONAL