Script: Fix two exception messages.

This commit is contained in:
Nicola
2017-06-12 18:51:53 +02:00
committed by Andreas Schildbach
parent 8855b58b1e
commit 833c3cfe14

View File

@@ -974,7 +974,7 @@ public class Script {
break;
case OP_FROMALTSTACK:
if (altstack.size() < 1)
throw new ScriptException("Attempted OP_TOALTSTACK on an empty altstack");
throw new ScriptException("Attempted OP_FROMALTSTACK on an empty altstack");
stack.add(altstack.pollLast());
break;
case OP_2DROP:
@@ -1125,7 +1125,7 @@ public class Script {
throw new ScriptException("Attempted to use disabled Script Op.");
case OP_EQUAL:
if (stack.size() < 2)
throw new ScriptException("Attempted OP_EQUALVERIFY on a stack with size < 2");
throw new ScriptException("Attempted OP_EQUAL on a stack with size < 2");
stack.add(Arrays.equals(stack.pollLast(), stack.pollLast()) ? new byte[] {1} : new byte[] {});
break;
case OP_EQUALVERIFY: