mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-23 22:46:56 +01:00
Script: add opcode name to disabled opcode exception message
This commit is contained in:
parent
cc64779e28
commit
964adb1e63
1 changed files with 2 additions and 1 deletions
|
@ -796,7 +796,8 @@ public class Script {
|
|||
opcode == OP_INVERT || opcode == OP_AND || opcode == OP_OR || opcode == OP_XOR ||
|
||||
opcode == OP_2MUL || opcode == OP_2DIV || opcode == OP_MUL || opcode == OP_DIV ||
|
||||
opcode == OP_MOD || opcode == OP_LSHIFT || opcode == OP_RSHIFT)
|
||||
throw new ScriptException(ScriptError.SCRIPT_ERR_DISABLED_OPCODE, "Script included a disabled Script Op.");
|
||||
throw new ScriptException(ScriptError.SCRIPT_ERR_DISABLED_OPCODE,
|
||||
"Script included disabled Script Op " + ScriptOpCodes.getOpCodeName(opcode));
|
||||
|
||||
if (shouldExecute && OP_0 <= opcode && opcode <= OP_PUSHDATA4) {
|
||||
// Check minimal push
|
||||
|
|
Loading…
Add table
Reference in a new issue