Skip to content

Commit

Permalink
Script: Fix exception handling within isSentToMultiSig() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
natzei authored and Andreas Schildbach committed Jul 24, 2017
1 parent d982e5f commit 6b42e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/bitcoinj/script/Script.java
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ public boolean isSentToMultiSig() {
}
// First chunk must be an OP_N opcode too.
if (decodeFromOpN(chunks.get(0).opcode) < 1) return false;
} catch (IllegalStateException e) {
} catch (IllegalArgumentException e) { // thrown by decodeFromOpN()
return false; // Not an OP_N opcode.
}
return true;
Expand Down

0 comments on commit 6b42e47

Please sign in to comment.