mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-03-10 09:20:04 +01:00
Script: Fix two exception messages.
This commit is contained in:
parent
c24ef97ac0
commit
eceee6b6dd
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue