3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-13 02:35:52 +00:00

Script: Fix two exception messages.

This commit is contained in:
Nicola 2017-06-12 18:51:53 +02:00 committed by Andreas Schildbach
parent c24ef97ac0
commit eceee6b6dd

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: