15 return "Script evaluated without error but finished with a "
16 "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 an OP_CHECKMULTISIGVERIFY operation";
24 return "Script failed an OP_CHECKSIGVERIFY operation";
26 return "Script failed an OP_CHECKDATASIGVERIFY operation";
28 return "Script failed an OP_NUMEQUALVERIFY operation";
30 return "Script is too big";
32 return "Push value size limit exceeded";
34 return "Operation limit exceeded";
36 return "Stack size limit exceeded";
38 return "Signature count negative or greater than pubkey count";
40 return "Pubkey count negative or limit exceeded";
42 return "Input SigChecks limit exceeded";
44 return "Invalid operand size";
46 return "Integer overflow";
48 return "Integer non-minimally encoded";
50 return "The requested encoding is impossible to satisfy";
52 return "Invalid OP_SPLIT range";
54 return "Invalid number of bit set in OP_CHECKMULTISIG";
56 return "Opcode missing or not understood";
58 return "Attempted to use a disabled opcode";
60 return "Operation not valid with the current stack size";
62 return "Operation not valid with the current altstack size";
64 return "OP_RETURN was encountered";
66 return "Invalid OP_IF construction";
68 return "Division by zero error";
70 return "Modulo by zero error";
72 return "Bitfield of unexpected size error";
74 return "Bitfield's bit out of the expected range";
76 return "Negative locktime";
78 return "Locktime requirement not satisfied";
80 return "Signature hash type missing or not understood";
82 return "Non-canonical DER signature";
84 return "Data push larger than necessary";
86 return "Only push operators allowed in signatures";
88 return "Non-canonical signature: S value is unnecessarily high";
90 return "OP_IF/NOTIF argument must be minimal";
92 return "Signature must be zero for failed CHECK(MULTI)SIG "
95 return "Signature cannot be 65 bytes in CHECKMULTISIG";
97 return "Only Schnorr signatures allowed in this operation";
99 return "NOPx reserved for soft-fork upgrades";
101 return "Public key is neither compressed or uncompressed";
103 return "Stack size must be exactly one after execution";
105 return "Illegal use of SIGHASH_FORKID";
107 return "Signature must use SIGHASH_FORKID";
109 return "Validation resources exceeded (SigChecks)";
115 return "unknown error";
std::string ScriptErrorString(const ScriptError serror)
@ DISCOURAGE_UPGRADABLE_NOPS
@ INVALID_ALTSTACK_OPERATION
@ SIGCHECKS_LIMIT_EXCEEDED
@ INVALID_STACK_OPERATION