mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-13 02:35:52 +00:00
Script: Fix exception handling within isSentToMultiSig() method.
This commit is contained in:
parent
d982e5fe9d
commit
6b42e477f7
@ -717,7 +717,7 @@ public class Script {
|
|||||||
}
|
}
|
||||||
// First chunk must be an OP_N opcode too.
|
// First chunk must be an OP_N opcode too.
|
||||||
if (decodeFromOpN(chunks.get(0).opcode) < 1) return false;
|
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 false; // Not an OP_N opcode.
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user