Changeset View
Changeset View
Standalone View
Standalone View
src/script/script_error.cpp
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | switch (serror) { | ||||
return "Dummy CHECKMULTISIG argument must be zero"; | return "Dummy CHECKMULTISIG argument must be zero"; | ||||
case SCRIPT_ERR_MINIMALIF: | case SCRIPT_ERR_MINIMALIF: | ||||
return "OP_IF/NOTIF argument must be minimal"; | return "OP_IF/NOTIF argument must be minimal"; | ||||
case SCRIPT_ERR_SIG_NULLFAIL: | case SCRIPT_ERR_SIG_NULLFAIL: | ||||
return "Signature must be zero for failed CHECK(MULTI)SIG " | return "Signature must be zero for failed CHECK(MULTI)SIG " | ||||
"operation"; | "operation"; | ||||
case SCRIPT_ERR_SIG_BADLENGTH: | case SCRIPT_ERR_SIG_BADLENGTH: | ||||
return "Signature cannot be 65 bytes in CHECKMULTISIG"; | return "Signature cannot be 65 bytes in CHECKMULTISIG"; | ||||
case SCRIPT_ERR_SIG_NONSCHNORR: | |||||
return "Only Schnorr signatures allowed in this operation"; | |||||
case SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS: | case SCRIPT_ERR_DISCOURAGE_UPGRADABLE_NOPS: | ||||
return "NOPx reserved for soft-fork upgrades"; | return "NOPx reserved for soft-fork upgrades"; | ||||
case SCRIPT_ERR_PUBKEYTYPE: | case SCRIPT_ERR_PUBKEYTYPE: | ||||
return "Public key is neither compressed or uncompressed"; | return "Public key is neither compressed or uncompressed"; | ||||
case SCRIPT_ERR_CLEANSTACK: | case SCRIPT_ERR_CLEANSTACK: | ||||
return "Script did not clean its stack"; | return "Script did not clean its stack"; | ||||
case SCRIPT_ERR_NONCOMPRESSED_PUBKEY: | case SCRIPT_ERR_NONCOMPRESSED_PUBKEY: | ||||
return "Using non-compressed public key"; | return "Using non-compressed public key"; | ||||
Show All 11 Lines |