mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-13 10:45:51 +00:00
Script: Fix two exception messages.
This commit is contained in:
parent
c24ef97ac0
commit
eceee6b6dd
@ -974,7 +974,7 @@ public class Script {
|
|||||||
break;
|
break;
|
||||||
case OP_FROMALTSTACK:
|
case OP_FROMALTSTACK:
|
||||||
if (altstack.size() < 1)
|
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());
|
stack.add(altstack.pollLast());
|
||||||
break;
|
break;
|
||||||
case OP_2DROP:
|
case OP_2DROP:
|
||||||
@ -1125,7 +1125,7 @@ public class Script {
|
|||||||
throw new ScriptException("Attempted to use disabled Script Op.");
|
throw new ScriptException("Attempted to use disabled Script Op.");
|
||||||
case OP_EQUAL:
|
case OP_EQUAL:
|
||||||
if (stack.size() < 2)
|
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[] {});
|
stack.add(Arrays.equals(stack.pollLast(), stack.pollLast()) ? new byte[] {1} : new byte[] {});
|
||||||
break;
|
break;
|
||||||
case OP_EQUALVERIFY:
|
case OP_EQUALVERIFY:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user