Changeset View
Changeset View
Standalone View
Standalone View
src/script/script_error.cpp
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | switch (serror) { | ||||
case ScriptError::OP_RETURN: | case ScriptError::OP_RETURN: | ||||
return "OP_RETURN was encountered"; | return "OP_RETURN was encountered"; | ||||
case ScriptError::UNBALANCED_CONDITIONAL: | case ScriptError::UNBALANCED_CONDITIONAL: | ||||
return "Invalid OP_IF construction"; | return "Invalid OP_IF construction"; | ||||
case ScriptError::DIV_BY_ZERO: | case ScriptError::DIV_BY_ZERO: | ||||
return "Division by zero error"; | return "Division by zero error"; | ||||
case ScriptError::MOD_BY_ZERO: | case ScriptError::MOD_BY_ZERO: | ||||
return "Modulo by zero error"; | return "Modulo by zero error"; | ||||
case ScriptError::INVALID_BITFIELD_SIZE: | |||||
return "Bitfield of unexpected size error"; | |||||
case ScriptError::INVALID_BIT_RANGE: | |||||
return "Bitfield's bit out of the expected range"; | |||||
case ScriptError::NEGATIVE_LOCKTIME: | case ScriptError::NEGATIVE_LOCKTIME: | ||||
return "Negative locktime"; | return "Negative locktime"; | ||||
case ScriptError::UNSATISFIED_LOCKTIME: | case ScriptError::UNSATISFIED_LOCKTIME: | ||||
return "Locktime requirement not satisfied"; | return "Locktime requirement not satisfied"; | ||||
case ScriptError::SIG_HASHTYPE: | case ScriptError::SIG_HASHTYPE: | ||||
return "Signature hash type missing or not understood"; | return "Signature hash type missing or not understood"; | ||||
case ScriptError::SIG_DER: | case ScriptError::SIG_DER: | ||||
return "Non-canonical DER signature"; | return "Non-canonical DER signature"; | ||||
Show All 36 Lines |